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
da8ee434
"vscode:/vscode.git/clone" did not exist on "b6945310c9f90bab0592a1a0fe909825f726b97d"
Commit
da8ee434
authored
Jul 10, 2024
by
Jonathan Rohde
Browse files
fix: use default model from config if available
parent
a843e81a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
src/lib/components/chat/Settings/Interface.svelte
src/lib/components/chat/Settings/Interface.svelte
+4
-1
src/lib/stores/index.ts
src/lib/stores/index.ts
+1
-1
No files found.
src/lib/components/chat/Settings/Interface.svelte
View file @
da8ee434
...
@@ -144,7 +144,10 @@
...
@@ -144,7 +144,10 @@
chatDirection = $settings.chatDirection ?? 'LTR';
chatDirection = $settings.chatDirection ?? 'LTR';
userLocation = $settings.userLocation ?? false;
userLocation = $settings.userLocation ?? false;
defaultModelId = ($settings?.models ?? ['']).at(0);
defaultModelId = $settings?.models?.at(0) ?? '';
if ($config?.default_models) {
defaultModelId = $config.default_models.split(',')[0];
}
backgroundImageUrl = $settings.backgroundImageUrl ?? null;
backgroundImageUrl = $settings.backgroundImageUrl ?? null;
});
});
...
...
src/lib/stores/index.ts
View file @
da8ee434
...
@@ -139,7 +139,7 @@ type Config = {
...
@@ -139,7 +139,7 @@ type Config = {
name
:
string
;
name
:
string
;
version
:
string
;
version
:
string
;
default_locale
:
string
;
default_locale
:
string
;
default_models
:
string
[]
;
default_models
:
string
;
default_prompt_suggestions
:
PromptSuggestion
[];
default_prompt_suggestions
:
PromptSuggestion
[];
features
:
{
features
:
{
auth
:
boolean
;
auth
:
boolean
;
...
...
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