Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
e274a0dc
"git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "987685dbf9223197d66c77fac82033fb7bfd2528"
Commit
e274a0dc
authored
Jun 08, 2024
by
Timothy J. Baek
Browse files
fix: base model verification
parent
d1da3dde
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
src/routes/(app)/workspace/models/create/+page.svelte
src/routes/(app)/workspace/models/create/+page.svelte
+14
-0
No files found.
src/routes/(app)/workspace/models/create/+page.svelte
View file @
e274a0dc
...
...
@@ -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 () => {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment