mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-10 15:54:15 -05:00
How do you set/load the first default model as default? #116
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @oliverbob on GitHub (Dec 23, 2023).
When the UI loads, users expect to be able to chat directly (just like in Chat GPT), coz it is annoying to receive a "Model not selected" message on first impression chat experience.
What file will I need to modify to preselect orca-mini:3b for instance?
Can it be modefied in ModelSelector.svelte?
I tried Select a model
But this only adds it to the list and still have to be selected.
Your help is appreciated.
@justinh-rahb commented on GitHub (Dec 23, 2023):
I think it'd be a useful feature to be able to set a default model with environment variable. Would that suffice to solve this for you?
@oliverbob commented on GitHub (Dec 23, 2023):
Yes, whatever we can do to solve it. It is not for ourselves by the way, but for the end users of this great UI.
@tjbck commented on GitHub (Dec 23, 2023):
Hi, I'll think of a way to implement it but if anyone manages to implement this in the meantime, feel free to make a PR!
One workaround for this would be setting the models url search param like such:
http://localhost:3000/?models=mistral:latestThanks!@oliverbob commented on GitHub (Dec 24, 2023):
Its difficult to make it work as a default home reverse proxy in Apache. Since it doesnt allow queiries without special instructions/directives.
Given such URL as built in feature, we can create a JavaScript or PHP redirect. Im sure that's possible in the backend but Im new to Svelte. I Just researched it last night 🤔😁 That is why I can contribute or make modifications less likely.
But I appreciate your prompt response. 🖖
@tjbck commented on GitHub (Jan 3, 2024):
Hi all, I've been thinking about what would be the best way to implement this without adding extra layer of complexity, and decided that it would be best if admin's default models is set globally, which is what I ended up implementing. Just merged a branch with the feature, Please try out the latest version and let me know if you encounter any issues, Thanks!
@justinh-rahb commented on GitHub (Jan 3, 2024):
This is an elegant enough solution, will try it out ASAP.
@justinh-rahb commented on GitHub (Jan 3, 2024):
@tjbck seems to work great on my end 👌
@jeannotdamoiseaux commented on GitHub (Feb 25, 2025):
I found the process of setting a default model for users as an admin to be unintuitive. I expected a more straightforward approach, such as a "default model" toggle or a ranking system to automatically determine the default model for users.
In the admin settings (via Settings → Models → Settings in the top-right), I noticed the options to reorder models at the top and add default models at the bottom. However, the behavior of this functionality isn’t entirely clear to me.
Does this mean that the highest-ranked default model is automatically selected for the user? What happens if no default models are selected at all?
Clarification on this process, or an update to the documentation, would be helpful.
@dlew56 commented on GitHub (May 8, 2025):
@tjbck is there a k8s deployment manifest file setting for this?