From 35be40c932456185c2fa381fdd4000dd6fef27b0 Mon Sep 17 00:00:00 2001 From: Silentoplayz <50341825+Silentoplayz@users.noreply.github.com> Date: Wed, 18 Jun 2025 01:48:34 -0400 Subject: [PATCH 1/3] chore: add more Settings types in stores --- src/lib/stores/index.ts | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/src/lib/stores/index.ts b/src/lib/stores/index.ts index 38905dd6d..5a8fc65c9 100644 --- a/src/lib/stores/index.ts +++ b/src/lib/stores/index.ts @@ -135,6 +135,42 @@ type OllamaModelDetails = { }; type Settings = { + pinnedModels: never[]; + toolServers: never[]; + detectArtifacts: boolean; + showUpdateToast: boolean; + showChangelog: boolean; + showEmojiInCall: boolean; + voiceInterruption: boolean; + collapseCodeBlocks: boolean; + expandDetails: boolean; + notificationSound: boolean; + notificationSoundAlways: boolean; + stylizedPdfExport: boolean; + notifications: any; + imageCompression: boolean; + imageCompressionSize: any; + widescreenMode: null; + largeTextAsFile: boolean; + promptAutocomplete: boolean; + hapticFeedback: boolean; + responseAutoCopy: any; + richTextInput: boolean; + params: any; + userLocation: any; + webSearch: boolean; + memory: boolean; + autoTags: boolean; + autoFollowUps: boolean; + splitLargeChunks(body: any, splitLargeChunks: any): unknown; + backgroundImageUrl: null; + landingPageMode: string; + iframeSandboxAllowForms: boolean; + iframeSandboxAllowSameOrigin: boolean; + scrollOnBranchChange: boolean; + directConnections: null; + chatBubble: boolean; + copyFormatted: boolean; models?: string[]; conversationMode?: boolean; speechAutoSend?: boolean; @@ -165,6 +201,8 @@ type ModelOptions = { }; type AudioSettings = { + stt: any; + tts: any; STTEngine?: string; TTSEngine?: string; speaker?: string; @@ -195,6 +233,7 @@ type Document = { }; type Config = { + license_metadata: any; status: boolean; name: string; version: string; @@ -234,6 +273,7 @@ type PromptSuggestion = { }; type SessionUser = { + permissions: any; id: string; email: string; name: string; From d66285f9268dd0efee54a283b5416582f7e3e5a9 Mon Sep 17 00:00:00 2001 From: Silentoplayz <50341825+Silentoplayz@users.noreply.github.com> Date: Wed, 18 Jun 2025 01:55:43 -0400 Subject: [PATCH 2/3] chore: add toolIds type --- src/lib/apis/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/apis/index.ts b/src/lib/apis/index.ts index 99b95b062..66572f20c 100644 --- a/src/lib/apis/index.ts +++ b/src/lib/apis/index.ts @@ -1587,12 +1587,13 @@ export interface ModelConfig { } export interface ModelMeta { + toolIds: never[]; description?: string; capabilities?: object; profile_image_url?: string; } -export interface ModelParams {} +export interface ModelParams { } export type GlobalModelConfig = ModelConfig[]; From 3be4fb25cd56b7b6f90dd3a5ffcdab72df5bc3c4 Mon Sep 17 00:00:00 2001 From: Silentoplayz <50341825+Silentoplayz@users.noreply.github.com> Date: Wed, 18 Jun 2025 02:01:21 -0400 Subject: [PATCH 3/3] fix: add ? --- src/lib/stores/index.ts | 74 ++++++++++++++++++++--------------------- 1 file changed, 37 insertions(+), 37 deletions(-) diff --git a/src/lib/stores/index.ts b/src/lib/stores/index.ts index 5a8fc65c9..d3693b568 100644 --- a/src/lib/stores/index.ts +++ b/src/lib/stores/index.ts @@ -135,42 +135,42 @@ type OllamaModelDetails = { }; type Settings = { - pinnedModels: never[]; - toolServers: never[]; - detectArtifacts: boolean; - showUpdateToast: boolean; - showChangelog: boolean; - showEmojiInCall: boolean; - voiceInterruption: boolean; - collapseCodeBlocks: boolean; - expandDetails: boolean; - notificationSound: boolean; - notificationSoundAlways: boolean; - stylizedPdfExport: boolean; - notifications: any; - imageCompression: boolean; - imageCompressionSize: any; - widescreenMode: null; - largeTextAsFile: boolean; - promptAutocomplete: boolean; - hapticFeedback: boolean; - responseAutoCopy: any; - richTextInput: boolean; - params: any; - userLocation: any; - webSearch: boolean; - memory: boolean; - autoTags: boolean; - autoFollowUps: boolean; - splitLargeChunks(body: any, splitLargeChunks: any): unknown; - backgroundImageUrl: null; - landingPageMode: string; - iframeSandboxAllowForms: boolean; - iframeSandboxAllowSameOrigin: boolean; - scrollOnBranchChange: boolean; - directConnections: null; - chatBubble: boolean; - copyFormatted: boolean; + pinnedModels?: never[]; + toolServers?: never[]; + detectArtifacts?: boolean; + showUpdateToast?: boolean; + showChangelog?: boolean; + showEmojiInCall?: boolean; + voiceInterruption?: boolean; + collapseCodeBlocks?: boolean; + expandDetails?: boolean; + notificationSound?: boolean; + notificationSoundAlways?: boolean; + stylizedPdfExport?: boolean; + notifications?: any; + imageCompression?: boolean; + imageCompressionSize?: any; + widescreenMode?: null; + largeTextAsFile?: boolean; + promptAutocomplete?: boolean; + hapticFeedback?: boolean; + responseAutoCopy?: any; + richTextInput?: boolean; + params?: any; + userLocation?: any; + webSearch?: boolean; + memory?: boolean; + autoTags?: boolean; + autoFollowUps?: boolean; + splitLargeChunks?(body: any, splitLargeChunks: any): unknown; + backgroundImageUrl?: null; + landingPageMode?: string; + iframeSandboxAllowForms?: boolean; + iframeSandboxAllowSameOrigin?: boolean; + scrollOnBranchChange?: boolean; + directConnections?: null; + chatBubble?: boolean; + copyFormatted?: boolean; models?: string[]; conversationMode?: boolean; speechAutoSend?: boolean; @@ -181,7 +181,7 @@ type Settings = { highContrastMode?: boolean; title?: TitleSettings; splitLargeDeltas?: boolean; - chatDirection: 'LTR' | 'RTL' | 'auto'; + chatDirection?: 'LTR' | 'RTL' | 'auto'; ctrlEnterToSend?: boolean; system?: string;