mirror of
https://github.com/open-webui/open-webui
synced 2025-01-19 01:06:45 +00:00
fix: import model
This commit is contained in:
parent
e274a0dc3e
commit
5342063e24
@ -265,7 +265,7 @@
|
||||
</div>
|
||||
{/if}
|
||||
<div class="flex items-center gap-2">
|
||||
<div class="flex items-center">
|
||||
<div class="flex items-center min-w-fit">
|
||||
<div class="line-clamp-1">
|
||||
{item.label}
|
||||
</div>
|
||||
|
@ -127,12 +127,16 @@
|
||||
if (model.info.base_model_id) {
|
||||
const base_model = $models
|
||||
.filter((m) => !m?.preset)
|
||||
.find((m) => m.id === model.info.base_model_id);
|
||||
.find((m) =>
|
||||
[model.info.base_model_id, `${model.info.base_model_id}:latest`].includes(m.id)
|
||||
);
|
||||
|
||||
console.log('base_model', base_model);
|
||||
|
||||
if (!base_model) {
|
||||
model.info.base_model_id = null;
|
||||
} else if ($models.find((m) => m.id === `${model.info.base_model_id}:latest`)) {
|
||||
model.info.base_model_id = `${model.info.base_model_id}:latest`;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user