Weixin-Liang / LLM-scientific-feedback

Can large language models provide useful feedback on research papers? A large-scale empirical analysis.
Creative Commons Attribution 4.0 International
489 stars 49 forks source link

gpt-4-1106-preview don't work #25

Closed harrywang closed 9 months ago

harrywang commented 9 months ago

get the following error:

Failed to generate review... Error: 

You tried to access openai.ChatCompletion, but this is no longer supported in openai>=1.0.0 - see the README at https://github.com/openai/openai-python for the API.

You can run `openai migrate` to automatically upgrade your codebase to use the 1.0.0 interface. 

Alternatively, you can pin your installation to the old version, e.g. `pip install openai==0.28`

A detailed migration guide is available here: https://github.com/openai/openai-python/discussions/742
harrywang commented 9 months ago

solved by adding:

openai==0.28

to requirements.txt