Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect API key provided #1134

Open
1 of 2 tasks
Xtaiyang opened this issue May 23, 2024 · 2 comments
Open
1 of 2 tasks

Incorrect API key provided #1134

Xtaiyang opened this issue May 23, 2024 · 2 comments
Labels
invalid This doesn't seem right

Comments

@Xtaiyang
Copy link

Xtaiyang commented May 23, 2024

这个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

@Xtaiyang Xtaiyang added the bug Something isn't working label May 23, 2024
@Keldos-Li Keldos-Li added invalid This doesn't seem right and removed bug Something isn't working labels May 23, 2024
@Xtaiyang
Copy link
Author

就是用着用着有时候就会这么显示

@ThorinKong
Copy link
Contributor

我也有这种情况,我是同时设置了GPT4o和Gemini,有时候用一阵子Gemini,再从前端切换回GPT4o后,发送给openAI的apikey就变成了Gemini的key,之后就报错Incorrect API key provided。重启后端后就又正常了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

3 participants