"docs/source/vscode:/vscode.git/clone" did not exist on "dcbfe662effb9dd2ed98f5f9a02900b292e59638"
Unverified Commit f7777f48 authored by Timothy Jaeryang Baek's avatar Timothy Jaeryang Baek Committed by GitHub
Browse files

Merge pull request #3753 from jonathan-rohde/fix/store-default-model

fix: preselect default model from config if no setting stored
parents 93ae6084 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;
}); });
......
...@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment