mirror of
https://github.com/open-webui/open-webui
synced 2025-01-19 01:06:45 +00:00
fix: base model verification
This commit is contained in:
parent
d1da3dde65
commit
e274a0dc3e
@ -124,6 +124,18 @@
|
||||
|
||||
id = model.id;
|
||||
|
||||
if (model.info.base_model_id) {
|
||||
const base_model = $models
|
||||
.filter((m) => !m?.preset)
|
||||
.find((m) => m.id === model.info.base_model_id);
|
||||
|
||||
console.log('base_model', base_model);
|
||||
|
||||
if (!base_model) {
|
||||
model.info.base_model_id = null;
|
||||
}
|
||||
}
|
||||
|
||||
params = { ...params, ...model?.info?.params };
|
||||
params.stop = params?.stop ? (params?.stop ?? []).join(',') : null;
|
||||
|
||||
@ -133,6 +145,8 @@
|
||||
...info,
|
||||
...model.info
|
||||
};
|
||||
|
||||
console.log(info);
|
||||
};
|
||||
|
||||
onMount(async () => {
|
||||
|
Loading…
Reference in New Issue
Block a user