mikumifa / QChatGPT-Docker-Installer

QChatGPT的docker部署
131 stars 25 forks source link

未能正确解析api-key #4

Closed VictorVvVv closed 1 year ago

VictorVvVv commented 1 year ago

报错 [bot]err:Incorrect API key provided: {'defaul*****8e'}. You can find your API key at https://beta.openai.com. 服务器调试消息:

[2022-12-23 04:06:57.332] util.py (67) - [INFO] : message='Request to OpenAI API' method=post path=https://api.openai.com/v1/completions [2022-12-23 04:06:58.192] util.py (67) - [INFO] : message='OpenAI API response' path=https://api.openai.com/v1/completions processing_ms=None request_id=740821755c158086c25f3ff948d5ccf4 response_code=401 [2022-12-23 04:06:58.193] util.py (67) - [INFO] : error_code=invalid_api_key error_message="Incorrect API key provided: {'defaul8e'}. You can find your API key at https://beta.openai.com." error_param=None error_type=invalid_request_error message='OpenAI API error received' stream_error=False [2022-12-23 04:06:58.194] manager.py (192) - [ERROR] : Incorrect API key provided: {'defaul8e'}. You can find your API key at https://beta.openai.com.

RockChinQ commented 1 year ago

_setup.Dockerfile中的

ENV URL=https://gitee.com/mikumifa/QChatGPT/releases/download/1.0/QChatGPT-1.0.zip

获取的文件版本较旧,建议修改成从原仓库克隆最新代码 @mikumifa

Byorn-Liu commented 1 year ago

修改成原仓库克隆代码后 重启 setup 还是会提示失败, 是修改地址之后,还需要其他操作吗?

VictorVvVv commented 1 year ago

修改成原仓库克隆代码后 重启 setup 还是会提示失败, 是修改地址之后,还需要其他操作吗?

我没有进行额外操作就可以正常使用了

Byorn-Liu commented 1 year ago

可以发一下 ENV URL= 吗? 是我配置的不对吗?

mikumifa commented 1 year ago

可以发一下 ENV URL= 吗? 是我配置的不对吗? 更新了loadFile.sh文件,从原仓库克隆最新代码