Open kuziTony opened 6 months ago
Bot detected the issue body's language is not English, translate it automatically.
Title: GEMINI-pro hopes to support one-api
If you enter the model gemini-pro will automatically recognize it as a Google model. One-api is deployed on the backend and converted into a standard openai interface. If you want to customize the model, enter the model name. The custom choice is google or openai or Microsoft.
currently it's still not supported yet to be honest its hard for front-end, unlike in back-end so easy even I was made this hahaha
Bot detected the issue body's language is not English, translate it automatically.
You can only refer to this issue first. https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/issues/3693
currently it's still not supported yet to be honest its hard for front-end, unlike in back-end so easy even I was made this hahaha
Regarding this issue, I have a suggestion that users should be allowed to set the communication type for the model. When users add a model through CUSTOM_MODEL, they can add the type setting by using #(or other identifier), such as model#type, gemini-pro#OpenAI. If not added, it defaults to the OpenAI endpoint.
改一下api.ts文件就行, 两个地方
如果输入模型gemini-pro会自动识别为google的模型,在后端部署了one-api被转化成了标准的openai的接口,期望可以自定义模型的时候输入模型名称,自定义选择是google或者是openai或者是微软。