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

module 'openai' has no attribute 'error' #2

Open
Yhc-777 opened this issue Dec 28, 2023 · 3 comments
Open

module 'openai' has no attribute 'error' #2

Yhc-777 opened this issue Dec 28, 2023 · 3 comments

Comments

@Yhc-777
Copy link

Yhc-777 commented Dec 28, 2023

Sorry to bother you. When I run the interaction.py file, I met the problem "State 1 failed. Cause: module 'openai' has no attribute 'error'". I have installed the openai == 0.28.1, is it the correct version? how can i solve this problem. Thank you so much!

@ZJULiHongxin
Copy link
Collaborator

ZJULiHongxin commented Dec 30, 2023

We are now currently using openai-python v1.6.1 and have updated the querying functions in ChatGPT.py. @Yhc-777

@Yhc-777
Copy link
Author

Yhc-777 commented Jan 2, 2024

Thank you so much! After using the updated code, I still have a problem: "Processing state1 - Coarse-grained planning�[0m
API call failed. Retring 1/20..." My GPT version is: GPT-3.5 turbo. How can i solve this problem. Thank you so much.

@ZJULiHongxin
Copy link
Collaborator

Maybe this error came from a typo in the GPT model name. We have tried fixing this bug. Now you can try again.
Any more questions, feel free to ask us😊
@Yhc-777

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

2 participants