【chatgpt项目】ChatWaifu-API-main
基本知识
anaconda基本命令
1.从官网上下载最新的anaconda(一定要用最新的!不要用以前2020的,我也不知道为啥)
遇到的各种问题
问题1:Completion和ChatCompletion
AttributeError: module 'openai' has no attribute 'ChatCompletion'
解决方案:
1.安装最新版本的openai:打开pypi官网,输入openai,找到最新版
# 你可以使用命令1
pip install openai==0.27.0
# 命令2
pip install --upgrade openai