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

[Feature Request] Load custom models as ENV variables in docker or some other way to load custom models. #5896

Open
shizuo-x opened this issue Dec 4, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@shizuo-x
Copy link

shizuo-x commented Dec 4, 2024

🥰 Feature Description

I am using own locally run model api under open ai name, but the models for open ai are hard coded into the ui, and without going into settings and changing the custom model name each time will output a wrong model error.

I is not a problem if my PC has only one model loaded, but multiple loaded model need to specify what model to use in the api request. I am using this chat UI as front end to expose on a website to the public. And a common man wont know what model are loaded on my pc and that he has to go to settings to manually load a model.

Please provide a feature to load models on the server side and show it as a list to the public to select from.

🧐 Proposed Solution

Please provide a feature to load models on the server side and show it as a list to the public to select from.

📝 Additional Information

No response

@shizuo-x shizuo-x added the enhancement New feature or request label Dec 4, 2024
@QAbot-zh
Copy link

QAbot-zh commented Dec 4, 2024

#5001

@shizuo-x
Copy link
Author

shizuo-x commented Dec 4, 2024

use: CUSTOM_MODELS as env variable in docker and put all models together separated by comma was solution for now.
I dont understand chinese, it is a bit hard to understand and look the translations.

@Kosette
Copy link
Contributor

Kosette commented Dec 4, 2024

TL;DR the custom model format is <model_name>@<provider>.

If you are using an OpenAI-compatible API, your custom model can be written as <model_name>@OpenAI, similarly, if it is a Claude-compatible API, it is written as <model_name>@Anthropic. Note that the provider name in @ is capitalized. If you are using a built-in model name, you can use lowercase.

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

No branches or pull requests

3 participants