Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API KEY error #21

Open
primeBiceps opened this issue Nov 17, 2023 · 3 comments
Open

API KEY error #21

primeBiceps opened this issue Nov 17, 2023 · 3 comments

Comments

@primeBiceps
Copy link

Hello,
anyone else having similar problem to mine? I entered the api_key for OpenAI as an environmental variable with cmd command setx OPENAI_API_KEY "sk-nU..." and also tried adding a system variable but I always get the same error when launching narrator.py:

openai.OpenAIError: The api_key client option must be set either by passing api_key to the client or
by setting the OPENAI_API_KEY environment variable

Any tips what would be the problem?

@Alex-Machina
Copy link

Same error

@cannero
Copy link

cannero commented Nov 24, 2023

Are you trying to run it from a cmd shell? If yes, did you open a new cmd window after the environment variable was created? Is the output of echo %OPENAI_API_KEY% the right key?

@nikhilnimbalkar1
Copy link

Try running it in a configuration with your environment variables set OR just add your keys into the relevant parameters in narrator.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants