mshumer / gpt-author

MIT License
2.45k stars 353 forks source link

An update to the OpenAI access API version is required #35

Open Ushkujnik opened 3 months ago

Ushkujnik commented 3 months ago

An update to the OpenAI access API version is required

When trying to run gpt-autor in Colab mode, the APIRemovedInV1 error is displayed during code execution:

APIRemovedInV1:

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

dachris88 commented 3 months ago

You should use the latest version. Go to readme and follow the instruction below. I use the latest notebook and was able to get a couple of books without any issue. Here is the latest one Claude_Author.ipynb

image