You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One API 代理的 google-gemini 模型的协议与 OpenAI 的一致(好像很多其他的开源服务也用的这个协议)。而我更新了2.10.1版以后发现无论是否选择 Google 为模型服务商,只要模型名称为gemini-pro都会被强制使用 google从而导致无法从 One API 中调用 Google Gemini Pro 模型。
One API 是一个好用的模型接口管理合集,用户可以使用一套自定义域名和密钥通过 OpenAI 的协议访问不同厂商的模型接口,非常方便好用。借用 One API,在之前版本的 ChatGPT Next 中我可以非常方便地通过切换模型来访问不同厂商的模型接口,而不需要更改密钥和地址,它也解决了 Google 等厂商的模型无法直连的问题。
Bot detected the issue body's language is not English, translate it automatically.
Title: [Bug] In version 2.10.1, when using the OpenAI protocol to access the gemini-pro model of One API, it was forced to use the Google Vertex API protocol. When calling the usage version
ShinChven
changed the title
[Bug] 2.10.1 版中使用 OpenAI 协议访问 One API 的 gemini-pro 模型时被强制成了 Google Vertex API 的协议,调用使用版
[Bug] 2.10.1 版中使用 OpenAI 协议访问 One API 的 gemini-pro 模型时被强制成了 Google Vertex AI API 的协议
Dec 29, 2023
Describe the bug
One API 代理的 google-gemini 模型的协议与 OpenAI 的一致(好像很多其他的开源服务也用的这个协议)。而我更新了2.10.1版以后发现无论是否选择 Google 为
模型服务商
,只要模型名称为gemini-pro
都会被强制使用google
从而导致无法从 One API 中调用 Google Gemini Pro 模型。One API 是一个好用的模型接口管理合集,
用户可以使用一套自定义域名和密钥通过 OpenAI 的协议访问不同厂商的模型接口
,非常方便好用。借用 One API,在之前版本的 ChatGPT Next 中我可以非常方便地通过切换模型来访问不同厂商的模型接口,而不需要更改密钥和地址,它也解决了 Google 等厂商的模型无法直连的问题。希望能进行的修改
在选择
OpenAI
为模型服务商
时,严格以 OpenAI 的协议发送请求,而不是根据模型名称来调用协议。To Reproduce
Steps to reproduce the behavior:
OpenAI
为模型服务商
gemini-pro
Expected behavior
以 OpenAI 的协议发送请求
Screenshots
If applicable, add screenshots to help explain your problem.
Deployment
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional Logs
Add any logs about the problem here.
The text was updated successfully, but these errors were encountered: