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

GitHub action fails coz OpenAI API Key's Key was changed(probably) #527

Closed
alik-eth opened this issue Dec 17, 2023 · 4 comments
Closed

GitHub action fails coz OpenAI API Key's Key was changed(probably) #527

alik-eth opened this issue Dec 17, 2023 · 4 comments
Labels
bug 🐛 Something is working solved

Comments

@alik-eth
Copy link

alik-eth commented Dec 17, 2023

I get this error when I run pr agent as a GH Action:
openai.error.AuthenticationError: No API key provided. You can set your API key in code using 'openai.api_key = ', or you can set the environment variable OPENAI_API_KEY=). If your API key is stored in a file, you can point the openai module at it with 'openai.api_key_path = '. You can generate API keys in the OpenAI web interface. See https://platform.openai.com/account/api-keys for details.

@alik-eth
Copy link
Author

I have had the PR agent working and today I discovered this regression.

@mrT23
Copy link
Collaborator

mrT23 commented Dec 17, 2023

thanks for the feedback. looking into this

@mrT23
Copy link
Collaborator

mrT23 commented Dec 17, 2023

(p.s - you can work against a stable docker, like v0.11, to avoid this)

@mrT23
Copy link
Collaborator

mrT23 commented Dec 17, 2023

#528 should fix it. Thanks for reporting

cc.
@brianpham93
that was a nasty bug, quite hard to find (lets split the blame 50/50 between me and you :-) )

We needed lazy initialization, otherwise it becomes a race for when the configuration is loaded.

@mrT23 mrT23 added bug 🐛 Something is working solved labels Dec 17, 2023
@mrT23 mrT23 closed this as completed Dec 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something is working solved
Projects
None yet
Development

No branches or pull requests

2 participants