SheetCopilot icon indicating copy to clipboard operation
SheetCopilot copied to clipboard

module 'openai' has no attribute 'error'

Open Yhc-777 opened this issue 2 years ago • 3 comments

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!

Yhc-777 avatar Dec 28 '23 12:12 Yhc-777

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

ZJULiHongxin avatar Dec 30 '23 07:12 ZJULiHongxin

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.

Yhc-777 avatar Jan 02 '24 01:01 Yhc-777

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

ZJULiHongxin avatar Jan 03 '24 05:01 ZJULiHongxin