Accessing openai.ChatCompletion, no longer supported in openai>=1.0.0 - how to update the code to use the new API? (AZURE)
オープン
- 主要言語
- Python
- スター
- 78.7k
- フォーク
- 9.6k
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
I'm using Azure API keys.
The error in backend logs indicates that the [openai.ChatCompletion] API has been removed in [openai>=1.0.0].
You need to update your code to use the new API.
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
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
評価
この issue はまだ評価されていません。