-
Notifications
You must be signed in to change notification settings - Fork 59.7k
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] 模型在选择下拉菜单中显示不正确,且无法添加自定义模型 #5933
Comments
Title: [Bug] Models are displayed incorrectly in the selection drop-down menu and custom models cannot be added |
|
|
感谢解答,我之所以在
然而我又发现,如果我前端添加了模型,无论我是否开启 自定义接口 ,似乎都会覆盖我配置文件里的API Key,因为其他 OpenAI 模型会报错 |
Thanks for the answer. The reason why I wrote OpenAI as openai in
|
你指的是 点击那个方框按钮 = 开闭自定义接口 吗?以前,这个按钮仅仅是前端的一个摆设,控制是否显示自定义接口设置项目,而并不是说点击它后就能 ”开闭自定义接口“。我记得当时,只要是填入了 自定义api&key 之后,无论这个按钮是否点选,请求始终会走自定义的。我不知道现在的逻辑是什么样、是否修复了、还是说又引入了新bug(就是你提到的情况)。
以前模型少的时候我是这么干的,现在模型太多了,我是直接改源码,从源头删掉乱七八糟的模型,只留个 OpenAI dall-e-3,剩下的模型通过环境变量 CUSTOM_MODELS 设置如 不想改源码,又不想一个一个通过-删除的话,你可以试试部署时 CUSTOM_MODELS 只 + 你要的,然后到前端去 -all,+deep-seek@OpenAI。前端的-all会把源码中所有的模型删了,但是不会删 CUSTOM_MODELS 以及前端手动 + 的模型。 |
Do you mean click the box button = open and close the custom interface? In the past, this button was just a decoration on the front end, controlling whether to display the custom interface setting items, but it did not mean that clicking it would "turn on and off the custom interface". I remember that at that time, as long as the custom api&key was filled in, the request would always be customized regardless of whether the button was clicked or not. I don't know what the current logic is, whether it has been fixed, or whether a new bug has been introduced (that's the situation you mentioned).
I used to do this when there were few models. Now that there are too many models, I directly change the source code, delete the messy models from the source, leaving only OpenAI dall-e-3, and the remaining models are set through the environment variable CUSTOM_MODELS as follows If you don't want to change the source code, and don't want to delete them one by one, you can try to deploy CUSTOM_MODELS + only what you want, and then go to the front end -all,+deep-seek@OpenAI. -all on the front end will delete all models in the source code, but it will not delete CUSTOM_MODELS and the models manually + on the front end. |
是的,我发现现在的逻辑很奇怪,在我点开了那个方框按钮的情况下,选择OpenAI,填入API & Key就会把我环境变量里的API & Key给override掉。在我不点开那个方框按钮的情况下,API不会override,但Key会。我有点懵。🤣
原来还可以这样操作,感谢解答!我晚点试试看。不过如果按上面我发现的情况来看,这DeepSeek的模型是添加不上了,因为我用的所谓OpenAI的接口也是第三方的,DeepSeek也是第三方的,只不过形式同OpenAI,而似乎同是OpenAI的接口类别,前端和环境变量里的必会产生冲突。等于说就是从根本上不支持添加多个不同渠道的OpenAI接口标准的API。 |
Yes, I find the current logic is very strange. When I click on the box button, select OpenAI and fill in the API & Key, the API & in my environment variables will be Key is overridden. When I don't click on the box button, the API will not override, but the Key will. I'm a little confused. 🤣
It turns out it can be done this way, thanks for the answer! I'll try it later. However, judging from what I found above, the DeepSeek model cannot be added, because it seems that they are both OpenAI interfaces, and the front-end and environment variables will definitely conflict. |
同求支持deepseek |
Please support deepseek |
📦 部署方式
Docker
📌 软件版本
docker v27.4.0, ChatGPT-Next-Web v2.15.8
💻 系统环境
Other Linux
📌 系统版本
Debian 12
🌐 浏览器
Edge
📌 浏览器版本
版本 131.0.2903.86 (正式版本) (64 位)
🐛 问题描述
问题1:
在
docker-compose.yml
文件中设置多项模型,BASE_URL
使用某中转接口供应商地址,CUSTOM_MODELS
设置如下:然而在模型选项里,部分模型被归入openai类别,部分模型被归入OpenAI类别。
问题2:
在UI界面中尝试另外再添加DeepSeek的模型,由于“模型服务商”中没有DeepSeek选项,而DeepSeek的API调用格式与OpenAI一致,在查阅本项目其他issue的解决方案之后采用如下接入方式:
模型服务商:
OpenAI
接口地址:
https://api.deepseek.com
API Key:
sk-xxxxxx
(从DeepSeek获取的API Key)自定义模型名:
deepseek-chat
如下图所示:
但模型选择中并未出现DeepSeek的
deepseek-chat
模型可供选择。📷 复现步骤
详见 🐛 问题描述 部分
🚦 期望结果
deepseek-chat
。📝 补充信息
No response
The text was updated successfully, but these errors were encountered: