mirror of
https://git.mirrors.martin98.com/https://github.com/open-webui/open-webui
synced 2025-08-14 23:26:00 +08:00
fix: local/external models
This commit is contained in:
parent
1f632d3570
commit
4c55ad71a7
@ -22,7 +22,7 @@ def get_task_model_id(
|
|||||||
# Set the task model
|
# Set the task model
|
||||||
task_model_id = default_model_id
|
task_model_id = default_model_id
|
||||||
# Check if the user has a custom task model and use that model
|
# Check if the user has a custom task model and use that model
|
||||||
if models[task_model_id].get("owned_by") == "ollama":
|
if models[task_model_id].get("connection_type") == "local":
|
||||||
if task_model and task_model in models:
|
if task_model and task_model in models:
|
||||||
task_model_id = task_model
|
task_model_id = task_model
|
||||||
else:
|
else:
|
||||||
|
@ -557,7 +557,7 @@
|
|||||||
</svg>
|
</svg>
|
||||||
</div>
|
</div>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
{:else if item.model.owned_by === 'openai'}
|
{:else if item.model.connection_type === 'external'}
|
||||||
<Tooltip content={`${'External'}`}>
|
<Tooltip content={`${'External'}`}>
|
||||||
<div class="translate-y-[1px]">
|
<div class="translate-y-[1px]">
|
||||||
<svg
|
<svg
|
||||||
|
Loading…
x
Reference in New Issue
Block a user