LangChain-Chinese-Getting-Started-Guide icon indicating copy to clipboard operation
LangChain-Chinese-Getting-Started-Guide copied to clipboard

爬取网页并输出JSON数据 报错

Open zzzichen277 opened this issue 1 year ago • 0 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: https://github.com/openai/openai-python/discussions/742

zzzichen277 avatar Feb 21 '24 09:02 zzzichen277