Skip to content
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

[Request] 支持在环境变量配置自定义模型服务商 #5998

Closed
HanadaLee opened this issue Feb 11, 2025 · 10 comments
Closed

[Request] 支持在环境变量配置自定义模型服务商 #5998

HanadaLee opened this issue Feb 11, 2025 · 10 comments
Labels
🌠 Feature Request New feature or request | 特性与建议 Model Provider 模型服务商

Comments

@HanadaLee
Copy link

HanadaLee commented Feb 11, 2025

🥰 需求描述

目前可以支持在WEBUI界面增加模型服务商,但是缺少在环境变量配置模型服务商的能力(至少从文档上没找到相关介绍)

Image

下面的issues中的腾讯满血版的DeepSeek R1就可以通过新建模型提供商实现,但是缺乏在环境变量钟新增模型服务商的能力
#5895

请求增加在环境变量配置自定义服务商的能力,以便预配自定义模型服务商

🧐 解决方案

可以考虑增加一个环境变量:CUSTOM_PROVIDERS=id=xxx&name=xxx&...,id=xxx&name=xxx&...
...是其他参数,就不一一列举了

📝 补充信息

No response

@HanadaLee HanadaLee added the 🌠 Feature Request New feature or request | 特性与建议 label Feb 11, 2025
@lobehubbot
Copy link
Member

👀 @HanadaLee

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible.
Please make sure you have given us as much context as possible.
非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


🥰 Requirement description

Currently, it can support adding model service providers in the WEBUI interface, but lack the ability to configure model service providers in environment variables (at least no relevant introduction was found in the document)

Image

Request to increase the ability to configure custom service providers in environment variables to provision custom model service providers

🧐 Solution

You can consider adding an environment variable: CUSTOM_PROVIDERS=id=xxx&name=xxx&...,id=xxx&name=xxx&...
...is other parameters, so I won't list them one by one

📝 Supplementary information

No response

@dosubot dosubot bot added the Model Provider 模型服务商 label Feb 11, 2025
@HanadaLee HanadaLee changed the title [Request] 支持在env配置自定义模型服务商 [Request] 支持在环境变量配置自定义模型服务商 Feb 11, 2025
@arvinxx
Copy link
Contributor

arvinxx commented Feb 11, 2025

暂时不会考虑通过环境变量添加服务商。未来会提供另外的方式来做这个事情

@arvinxx arvinxx closed this as completed Feb 11, 2025
@arvinxx arvinxx closed this as not planned Won't fix, can't repro, duplicate, stale Feb 11, 2025
@lobehubbot
Copy link
Member

@HanadaLee

This issue is closed, If you have any questions, you can comment and reply.
此问题已经关闭。如果您有任何问题,可以留言并回复。

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


The addition of service providers through environment variables will not be considered for the time being. In the future, there will be another way to do this

@lobehubbot
Copy link
Member

@HanadaLee

This issue is closed, If you have any questions, you can comment and reply.
此问题已经关闭。如果您有任何问题,可以留言并回复。

@XiaozhongFang
Copy link

应该考虑怎么做类似NewAPI那样的端口分发管理功能

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


You should consider how to do port distribution management functions similar to NewAPI

@arvinxx
Copy link
Contributor

arvinxx commented Feb 28, 2025

应该考虑怎么做类似NewAPI那样的端口分发管理功能

不考虑做newapi

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


You should consider how to do port distribution management functions similar to NewAPI

Don't consider doing newapi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌠 Feature Request New feature or request | 特性与建议 Model Provider 模型服务商
Projects
None yet
Development

No branches or pull requests

4 participants