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
5ec20c1a
Unverified
Commit
5ec20c1a
authored
Oct 23, 2023
by
Timothy Jaeryang Baek
Committed by
GitHub
Oct 23, 2023
Browse files
Merge pull request #24 from ollama-webui/dev
fix: make sure settings model exists
parents
51874cfa
2095d4ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
src/routes/+page.svelte
src/routes/+page.svelte
+6
-3
No files found.
src/routes/+page.svelte
View file @
5ec20c1a
...
...
@@ -39,7 +39,10 @@
settings = JSON.parse(settings);
console.log(settings);
selectedModel = settings.model ?? '';
selectedModel =
settings.model && models.map((model) => model.name).includes(settings.model)
? settings.model
: '';
system = settings.system ?? null;
temperature = settings.temperature ?? null;
}
...
...
@@ -233,8 +236,8 @@
return { models: [] };
});
cons
t data =
res;
models =
data
.models;
cons
ole.log(
res
)
;
models =
res
.models
?? []
;
};
const submitPrompt = async (user_prompt) => {
...
...
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