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

Downgrading OpenAI to Version 0.28 or Below for Compatibility #18

Open
ryan-minato opened this issue Oct 4, 2024 · 1 comment
Open

Comments

@ryan-minato
Copy link

OpenAI has updated their API, and the openai.error.OpenAIError no longer exists. You need to modify it to openai.OpenAIError for the code to work. However, making this change will trigger a warning, which recommend to downgrade the version to below 0.28.

AttributeError: module ‘openai’ has no attribute ‘error’

@ryan-minato
Copy link
Author

For now, running this commans is a temporary solution to this issue.

pip install "openai==0.28"

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

1 participant