NextChat
NextChat copied to clipboard
[Feature Request]: 希望增加中转/代理的Gemini支持
Problem Description
gemini pro模型只支持官方api地址调用,使用第三方中转服务的地址目前无法使用gemini,希望增加可以选择中转的api支持
Solution Description
增加中转的gemini支持
Alternatives Considered
No response
Additional Context
No response
Bot detected the issue body's language is not English, translate it automatically.
Title: [Feature Request]: Hope to add Gemini support for relay/proxy
Problem Description
The gemini pro model only supports official api address calls. Addresses using third-party transfer services currently cannot use gemini. We hope to add api support that can choose transfer.
Solution Description
Added gemini support for transit
Alternatives Considered
No response
Additional Context
No response
以前是支持的,现在版本完全不能支持Gemini的API,是阉割掉了吗?
Bot detected the issue body's language is not English, translate it automatically.
It used to be supported, but the current version cannot support Gemini's API at all. Has it been castrated?
原来是这样,nextchat支持gemini的api直接访问,第三方的是使用openai的请求方式。这还是直接使用openai的请求吧,不然谁单独给gemini设代理啊,代理了它,其他的模型又用不了了。
Bot detected the issue body's language is not English, translate it automatically.
It turns out that nextchat supports direct access to gemini's api, and third-party users use openai's request method. This is better to use openai's request directly, otherwise who will set up a separate proxy for gemini, and proxy it, and other models will not be able to use it.
You can customize gemini api host via environment variables. If your api provider only supports OpenAI format api, you will need to configure the OpenAI api via environment variables or settings.
我使用的中转API是oneapi,可是我的api提供商里gemini的模型名就是gemini-pro,没办法更改也就是重定向,这样导致我在nextweb中填写gemini-pro的时候它走谷歌的api地址,没办法走我的中转api地址
Bot detected the issue body's language is not English, translate it automatically.
The transfer API I use is oneapi, but the model name of gemini in my api provider is gemini-pro. There is no way to change it, that is, redirection. This causes it to use Google's api address when I fill in gemini-pro in nextweb. , there is no way to get my transit api address