原因
openai库版本过旧
解决办法(二选一)
pip install -U openai
- 下载安装包放入你的项目根目录下,
改名格式zip为whl(即:openai-0.27.0-py3-none-any.zip
→openai-0.27.0-py3-none-any.whl
)
终端执行pip install openai-0.27.0-py3-none-any.whl
目的就是更新你的openai,选择其中一种办法即可。
标签:ChatCompletion,0.27,no,whl,attribute,py3,none,openai,any From: https://www.cnblogs.com/aiyablog/p/17176672.html