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

[Bug] window版本和web版本都能用gemini,只有docker版本2.12.2的用不了,提示{ "error": true, "message": "Request failed" } 怎么解决 #4618

Open
1 of 3 tasks
pp6451303 opened this issue May 5, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@pp6451303
Copy link

Bug Description

window版本和web版本都能用gemini,只有docker版本2.12.2的用不了,提示{
"error": true,
"message": "Request failed"
}

怎么解决

Steps to Reproduce

提示{
"error": true,
"message": "Request failed"
}

Expected Behavior

提示{
"error": true,
"message": "Request failed"
}

Screenshots

提示{
"error": true,
"message": "Request failed"
}

Deployment Method

  • Docker
  • Vercel
  • Server

Desktop OS

No response

Desktop Browser

No response

Desktop Browser Version

No response

Smartphone Device

No response

Smartphone OS

No response

Smartphone Browser

No response

Smartphone Browser Version

No response

Additional Logs

提示{
"error": true,
"message": "Request failed"
}

@pp6451303 pp6451303 added the bug Something isn't working label May 5, 2024
@Dean-YZG
Copy link
Contributor

Dean-YZG commented May 6, 2024

部署的时候使用的shell命令,包括报错截图有么?

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Are there any shell commands used during deployment, including error screenshots?

@SteamFinder
Copy link

请不要使用one-api代理后的gemini-pro 因为one-api会转换成OpenAI格式
如果必须使用one-api 请自定义模型映射代码
除此之外 如果直接填写Google API Key出现问题 说明调用的接口不对 现在谷歌最新的接口是/v1beta而不是/v1

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Please do not use gemini-pro after one-api proxy because one-api will convert it to OpenAI format
If you must use one-api, please customize the model mapping code
In addition, if there is a problem directly filling in the Google API Key, it means that the calling interface is wrong. Now Google’s latest interface is /v1beta instead of /v1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants