Skip to content

[Feature Request] 建议CUSTOM_MODELS 的-(减号)支持通配或正则,并支持直接减去某个运营商的所有模型 #5050

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

Open
bestsanmao opened this issue Jul 18, 2024 · 16 comments
Assignees
Labels
enhancement New feature or request planned planned feature, will support in the future

Comments

@bestsanmao
Copy link
Contributor

🥰 需求描述

鉴于现在模型列表越来越多
有些用不上的(或者没有api token)的模型需要隐藏
建议在CUSTOM_MODELS 的-语法上增加通配符或正则匹配 比如 -ernie-*
同时比如 我用不上百度的 可以直接类似于 -@baidu 就可以把百度所有模型隐藏掉

🧐 解决方案

建议在CUSTOM_MODELS 的-语法上增加通配符或正则匹配 比如 -ernie-*
同时比如 我用不上百度的 可以直接类似于 -@baidu 就可以把百度所有模型隐藏掉

📝 补充信息

No response

@bestsanmao bestsanmao added the enhancement New feature or request label Jul 18, 2024
@Issues-translate-bot
Copy link

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


Title: [Feature Request] It is recommended that the - (minus sign) of CUSTOM_MODELS supports wildcards or regularization, and supports direct subtraction of all models of a certain operator

🥰 Description of requirements

In view of the growing list of models now
Some models that are not used (or do not have api token) need to be hidden
It is recommended to add wildcards or regular matching to the - syntax of CUSTOM_MODELS, such as -ernie-*
At the same time, for example, if I don’t use Baidu, I can directly hide all Baidu models by similar to -@baidu

🧐 Solution

It is recommended to add wildcards or regular matching to the - syntax of CUSTOM_MODELS, such as -ernie-*
At the same time, for example, if I don’t use Baidu, I can directly hide all Baidu models by similar to -@baidu

📝 Supplementary information

No response

@QAbot-zh
Copy link

很好的建议,支持

@Issues-translate-bot
Copy link

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


Great advice, support

@Dogtiti
Copy link
Member

Dogtiti commented Jul 18, 2024

后面会考虑根据你的环境变量是否配置了对应的apikey 来显示对应的模型
例如你压根没有配置baidu相关的,那么模型列表就不会显示baidu相关的模型

@Issues-translate-bot
Copy link

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


Later, we will consider whether the corresponding apikey is configured according to your environment variables to display the corresponding model.
For example, if you have not configured Baidu-related models at all, then the model list will not display Baidu-related models.

@Dogtiti Dogtiti self-assigned this Jul 18, 2024
@5548269
Copy link

5548269 commented Jul 24, 2024

这个建议极好,期待

@Issues-translate-bot
Copy link

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


This is great advice, looking forward to it

@Dogtiti Dogtiti added the planned planned feature, will support in the future label Jul 30, 2024
@QwertyJack
Copy link

QwertyJack commented Jul 30, 2024

如果设置了 OPENAI_API_KEY,是不是有可能加个配置项(例如:GET_MODEL_LIST),启动时先请求 GET /v1/models 获取当前模型列表?

@Issues-translate-bot
Copy link

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


Is it possible to add a configuration item (for example: GET_MODEL_LIST), and first request GET /v1/models to obtain the current model list when starting?

@QAbot-zh
Copy link

如果设置了 OPENAI_API_KEY,是不是有可能加个配置项(例如:GET_MODEL_LIST),启动时先请求 GET /v1/models 获取当前模型列表?

之前倒是有个老的 pr 是支持在前端手动获取可用模型列表:#4815

@Issues-translate-bot
Copy link

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


If OPENAI_API_KEY is set, is it possible to add a configuration item (for example: GET_MODEL_LIST), and first request GET /v1/models to obtain the current model list when starting?

There was an old PR that supported manually obtaining the list of available models on the front end: #4815

bestsanmao added a commit to bestsanmao/ChatGPT-Next-Web-Forked that referenced this issue Aug 1, 2024
…eb#5050

for CUSTOM_MODELS
if start with "-", it supports -@providerName
and -modelname support wildcard (*), 
eg:
CUSTOM_MODELS=-ernie-*,-doubao-*,-@Azure
@cnmozzie
Copy link

期待这个功能,现在模型太多了,每次选择都要滑好久

@Issues-translate-bot
Copy link

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


Looking forward to this function. There are too many models now, and it takes a long time to swipe every time I choose.

@Davidlasky
Copy link

Just to follow up, any updates on this enhancement feature? There're more and more new models nowadays and it's really annoying to modify the CUSTOM_MODELS env variable in Vercel each time new models are added to deployment.

@QAbot-zh
Copy link

QAbot-zh commented Feb 5, 2025

Just to follow up, any updates on this enhancement feature? There're more and more new models nowadays and it's really annoying to modify the CUSTOM_MODELS env variable in Vercel each time new models are added to deployment.

There is a PR #5992 that hasn't been processed, and it's uncertain whether it is compatible with the current project now. Sad.

@MrPeterJin
Copy link

Can't agree more. Looking forward to an automated solution for managing the CUSTOM_MODELS env variable. It would definitely streamline our deployment process and save us a lot of time!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request planned planned feature, will support in the future
Projects
None yet
Development

No branches or pull requests

9 participants