mshumer / gpt-llm-trainer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error :You tried to access openai.ChatCompletion, but this is no longer supported in openai>=1.0.0

Sandy4321 opened this issue · comments

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: openai/openai-python#742
APIRemovedInV1Proxy: def call(*_args: Any, **_kwargs: Any) -> Any

openai.lib._old_api.APIRemovedInV1Proxy instance

change previous line to older version of openai and rerun

!pip install openai==0.28