{ floatingActionButtons = buttons; saveSettings({ floatingActionButtons }); }} />
{ updateInterfaceHandler(); dispatch('save'); }} > { let reader = new FileReader(); reader.onload = (event) => { let originalImageUrl = `${event.target.result}`; backgroundImageUrl = originalImageUrl; saveSettings({ backgroundImageUrl }); }; if ( inputFiles && inputFiles.length > 0 && ['image/gif', 'image/webp', 'image/jpeg', 'image/png'].includes(inputFiles[0]['type']) ) { reader.readAsDataURL(inputFiles[0]); } else { console.log(`Unsupported File Type '${inputFiles[0]['type']}'.`); inputFiles = null; } }} />

{$i18n.t('UI')}

{$i18n.t('High Contrast Mode')} ({$i18n.t('Beta')})
{ saveSettings({ highContrastMode }); }} />
{$i18n.t('Notification Sound')}
{ saveSettings({ notificationSound }); }} />
{#if notificationSound}
{$i18n.t('Always Play Notification Sound')}
{ saveSettings({ notificationSoundAlways }); }} />
{/if}
{$i18n.t('Allow User Location')}
{ toggleUserLocation(); }} />
{$i18n.t('Haptic Feedback')} ({$i18n.t('Android')})
{ saveSettings({ hapticFeedback }); }} />
{$i18n.t('Copy Formatted Text')}
{ saveSettings({ copyFormatted }); }} />
{#if $user?.role === 'admin'}
{$i18n.t('Toast notifications for new updates')}
{ saveSettings({ showUpdateToast }); }} />
{$i18n.t(`Show "What's New" modal on login`)}
{ saveSettings({ showChangelog }); }} />
{/if}
{$i18n.t('Chat')}
{$i18n.t('Chat direction')}
{$i18n.t('Landing Page Mode')}
{$i18n.t('Chat Background Image')}
{$i18n.t('Chat Bubble UI')}
{ saveSettings({ chatBubble }); }} />
{#if !$settings.chatBubble}
{$i18n.t('Display the username instead of You in the Chat')}
{ saveSettings({ showUsername }); }} />
{/if}
{$i18n.t('Widescreen Mode')}
{ saveSettings({ widescreenMode }); }} />
{$i18n.t('Fade Effect for Streaming Text')}
{ saveSettings({ chatFadeStreamingText }); }} />
{$i18n.t('Title Auto-Generation')}
{ toggleTitleAutoGenerate(); }} />
{$i18n.t('Follow-Up Auto-Generation')}
{ saveSettings({ autoFollowUps }); }} />
{$i18n.t('Chat Tags Auto-Generation')}
{ saveSettings({ autoTags }); }} />
{$i18n.t('Auto-Copy Response to Clipboard')}
{ toggleResponseAutoCopy(); }} />
{$i18n.t('Keep Follow-Up Prompts in Chat')}
{ saveSettings({ keepFollowUpPrompts }); }} />
{$i18n.t('Insert Follow-Up Prompt to Input')}
{ saveSettings({ insertFollowUpPrompt }); }} />
{$i18n.t('Regenerate Menu')}
{ saveSettings({ regenerateMenu }); }} />
{$i18n.t('Always Collapse Code Blocks')}
{ saveSettings({ collapseCodeBlocks }); }} />
{$i18n.t('Always Expand Details')}
{ saveSettings({ expandDetails }); }} />
{$i18n.t('Display Multi-model Responses in Tabs')}
{ saveSettings({ displayMultiModelResponsesInTabs }); }} />
{$i18n.t('Scroll On Branch Change')}
{ saveSettings({ scrollOnBranchChange }); }} />
{$i18n.t('Stylized PDF Export')}
{ saveSettings({ stylizedPdfExport }); }} />
{#if showFloatingActionButtons} {/if} { saveSettings({ showFloatingActionButtons }); }} />
{$i18n.t('Web Search in Chat')}
{$i18n.t('Input')}
{$i18n.t('Enter Key Behavior')}
{$i18n.t('Rich Text Input for Chat')}
{ saveSettings({ richTextInput }); }} />
{#if richTextInput}
{$i18n.t('Show Formatting Toolbar')}
{ saveSettings({ showFormattingToolbar }); }} />
{$i18n.t('Insert Prompt as Rich Text')}
{ saveSettings({ insertPromptAsRichText }); }} />
{#if $config?.features?.enable_autocomplete_generation}
{$i18n.t('Prompt Autocompletion')}
{ saveSettings({ promptAutocomplete }); }} />
{/if} {/if}
{$i18n.t('Paste Large Text as File')}
{ saveSettings({ largeTextAsFile }); }} />
{$i18n.t('Artifacts')}
{$i18n.t('Detect Artifacts Automatically')}
{ saveSettings({ detectArtifacts }); }} />
{$i18n.t('iframe Sandbox Allow Same Origin')}
{ saveSettings({ iframeSandboxAllowSameOrigin }); }} />
{$i18n.t('iframe Sandbox Allow Forms')}
{ saveSettings({ iframeSandboxAllowForms }); }} />
{$i18n.t('Voice')}
{$i18n.t('Allow Voice Interruption in Call')}
{ saveSettings({ voiceInterruption }); }} />
{$i18n.t('Display Emoji in Call')}
{ saveSettings({ showEmojiInCall }); }} />
{$i18n.t('File')}
{$i18n.t('Image Compression')}
{ saveSettings({ imageCompression }); }} />
{#if imageCompression}
{$i18n.t('Image Max Compression Size')}
x
{$i18n.t('Compress Images in Channels')}
{ saveSettings({ imageCompressionInChannels }); }} />
{/if}