diff --git a/src/lib/apis/ollama/index.ts b/src/lib/apis/ollama/index.ts index ce05145d2..b28d06071 100644 --- a/src/lib/apis/ollama/index.ts +++ b/src/lib/apis/ollama/index.ts @@ -162,7 +162,7 @@ export const generateTitle = async ( stream: false, options: { // Restrict the number of tokens generated to 50 - num_predict: 50, + num_predict: 50 } }) }) diff --git a/src/lib/apis/openai/index.ts b/src/lib/apis/openai/index.ts index c7dd1366d..944e2d40d 100644 --- a/src/lib/apis/openai/index.ts +++ b/src/lib/apis/openai/index.ts @@ -297,7 +297,7 @@ export const generateTitle = async ( ], stream: false, // Restricting the max tokens to 50 to avoid long titles - max_tokens: 50, + max_tokens: 50 }) }) .then(async (res) => { diff --git a/src/lib/components/chat/ModelSelector/Selector.svelte b/src/lib/components/chat/ModelSelector/Selector.svelte index 0f1ebfbf9..8d76294b4 100644 --- a/src/lib/components/chat/ModelSelector/Selector.svelte +++ b/src/lib/components/chat/ModelSelector/Selector.svelte @@ -318,7 +318,6 @@ }} > {$i18n.t(`Pull "{{searchValue}}" from Ollama.com`, { searchValue: searchValue })} - {/if} diff --git a/src/lib/components/chat/ShareChatModal.svelte b/src/lib/components/chat/ShareChatModal.svelte index 8555eec80..50f38d8a9 100644 --- a/src/lib/components/chat/ShareChatModal.svelte +++ b/src/lib/components/chat/ShareChatModal.svelte @@ -97,9 +97,10 @@
{#if chat.share_id} {$i18n.t("You have shared this chat")} {$i18n.t("before")}.{$i18n.t('You have shared this chat')} + {$i18n.t('before')}. - {$i18n.t("Click here to")} + {$i18n.t('Click here to')} {$i18n.t("and create a new shared link.")} + }} + >{$i18n.t('delete this link')} + + {$i18n.t('and create a new shared link.')} {:else} - {$i18n.t("Messages you send after creating your link won't be shared. Users with the URL will beable to view the shared chat.")} + {$i18n.t( + "Messages you send after creating your link won't be shared. Users with the URL will beable to view the shared chat." + )} {/if}
diff --git a/src/lib/components/layout/Sidebar.svelte b/src/lib/components/layout/Sidebar.svelte index 10a487d7d..d4e047f41 100644 --- a/src/lib/components/layout/Sidebar.svelte +++ b/src/lib/components/layout/Sidebar.svelte @@ -419,7 +419,7 @@ await chats.set(await getChatList(localStorage.token)); }} > - {$i18n.t('all')} + {$i18n.t('all')} {#each $tags as tag}