Incorrect API key provided

Author: XtaiyangCreated May 23, 2024Updated Aug 24, 2024
Labelsinvalid

这个bug是否已存在现有issue了?

  • 我确认没有已有issue,且已阅读常见问题

错误表现

☹️发生了错误:{ “error”: { “message”: “Incorrect API key provided: sk-L*******************************************4HZ5. You can find your API key at https://platform.openai.com/account/api-keys.”, “type”: “invalid_request_error”, “param”: null, “code”: “invalid_api_key” }}

复现操作

正常完成部署 部署后直接使用(默认为gpt-3.5-turbo),没有任何问题。 切换为gpt-4,使用时出现以上报错。(报错之后,在OpenAI Translator以及OpenAI后台检查过,我的key正常的并且是有权限使用gpt-4的)

错误日志

No response

运行环境

  • OS:
  • Browser:
  • Gradio version:
  • Python version:

帮助解决

  • 我愿意协助解决!

补充说明

No response

Source: GaiZhenbiao/ChuanhuChatGPT