From 7f1acf9c2d0e8879c3b27f17bf4423273df62d88 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Mon, 6 May 2024 12:58:24 -0700 Subject: [PATCH] chore: format --- src/lib/apis/ollama/index.ts | 2 +- src/lib/apis/openai/index.ts | 2 +- .../chat/ModelSelector/Selector.svelte | 1 - src/lib/components/chat/ShareChatModal.svelte | 15 ++++++++++----- src/lib/components/layout/Sidebar.svelte | 2 +- .../layout/Sidebar/ArchivedChatsModal.svelte | 4 +++- src/lib/i18n/locales/ar-BH/translation.json | 16 ++++++++++++++++ src/lib/i18n/locales/bg-BG/translation.json | 16 ++++++++++++++++ src/lib/i18n/locales/bn-BD/translation.json | 16 ++++++++++++++++ src/lib/i18n/locales/ca-ES/translation.json | 16 ++++++++++++++++ src/lib/i18n/locales/dg-DG/translation.json | 16 ++++++++++++++++ src/lib/i18n/locales/en-GB/translation.json | 16 ++++++++++++++++ src/lib/i18n/locales/en-US/translation.json | 16 ++++++++++++++++ src/lib/i18n/locales/es-ES/translation.json | 16 ++++++++++++++++ src/lib/i18n/locales/fa-IR/translation.json | 16 ++++++++++++++++ src/lib/i18n/locales/fr-CA/translation.json | 16 ++++++++++++++++ src/lib/i18n/locales/fr-FR/translation.json | 16 ++++++++++++++++ src/lib/i18n/locales/it-IT/translation.json | 16 ++++++++++++++++ src/lib/i18n/locales/ja-JP/translation.json | 16 ++++++++++++++++ src/lib/i18n/locales/ka-GE/translation.json | 16 ++++++++++++++++ src/lib/i18n/locales/ko-KR/translation.json | 16 ++++++++++++++++ src/lib/i18n/locales/nl-NL/translation.json | 16 ++++++++++++++++ src/lib/i18n/locales/pl-PL/translation.json | 16 ++++++++++++++++ src/lib/i18n/locales/pt-BR/translation.json | 16 ++++++++++++++++ src/lib/i18n/locales/pt-PT/translation.json | 16 ++++++++++++++++ src/lib/i18n/locales/ru-RU/translation.json | 16 ++++++++++++++++ src/lib/i18n/locales/sv-SE/translation.json | 16 ++++++++++++++++ src/lib/i18n/locales/tr-TR/translation.json | 16 ++++++++++++++++ src/lib/i18n/locales/uk-UA/translation.json | 16 ++++++++++++++++ src/lib/i18n/locales/vi-VN/translation.json | 16 ++++++++++++++++ src/lib/i18n/locales/zh-CN/translation.json | 16 ++++++++++++++++ src/lib/i18n/locales/zh-TW/translation.json | 16 ++++++++++++++++ 32 files changed, 432 insertions(+), 10 deletions(-) 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}