diff --git a/backend/apps/images/main.py b/backend/apps/images/main.py index a418f2693..06d0bcce8 100644 --- a/backend/apps/images/main.py +++ b/backend/apps/images/main.py @@ -150,10 +150,10 @@ async def update_engine_url( else: url = form_data.AUTOMATIC1111_BASE_URL.strip("/") try: - r = requests.head(url) + r = requests.head(url) app.state.config.AUTOMATIC1111_BASE_URL = url except Exception as e: - raise HTTPException(status_code=400, detail=ERROR_MESSAGES.DEFAULT(e)) + raise HTTPException(status_code=400, detail="Invalid URL provided.") if form_data.COMFYUI_BASE_URL == None: app.state.config.COMFYUI_BASE_URL = COMFYUI_BASE_URL diff --git a/package-lock.json b/package-lock.json index b7e714ed7..2006a3fd3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -29,6 +29,7 @@ "js-sha256": "^0.10.1", "katex": "^0.16.9", "marked": "^9.1.0", + "marked-katex-extension": "^5.1.1", "mermaid": "^10.9.1", "pyodide": "^0.26.1", "socket.io-client": "^4.2.0", @@ -1544,6 +1545,11 @@ "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", "dev": true }, + "node_modules/@types/katex": { + "version": "0.16.7", + "resolved": "https://registry.npmjs.org/@types/katex/-/katex-0.16.7.tgz", + "integrity": "sha512-HMwFiRujE5PjrgwHQ25+bsLJgowjGjm5Z8FVSf0N6PwgJrwxH0QxzHYDcKsTfV3wva0vzrpqMTJS2jXPr5BMEQ==" + }, "node_modules/@types/mdast": { "version": "3.0.15", "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.15.tgz", @@ -6036,6 +6042,18 @@ "node": ">= 16" } }, + "node_modules/marked-katex-extension": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/marked-katex-extension/-/marked-katex-extension-5.1.1.tgz", + "integrity": "sha512-piquiCyZpZ1aiocoJlJkRXr+hkk5UI4xw9GhRZiIAAgvX5rhzUDSJ0seup1JcsgueC8MLNDuqe5cRcAzkFE42Q==", + "dependencies": { + "@types/katex": "^0.16.7" + }, + "peerDependencies": { + "katex": ">=0.16 <0.17", + "marked": ">=4 <15" + } + }, "node_modules/matcher-collection": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/matcher-collection/-/matcher-collection-2.0.1.tgz", diff --git a/package.json b/package.json index 0c7a8518a..bd2b173bf 100644 --- a/package.json +++ b/package.json @@ -70,6 +70,7 @@ "js-sha256": "^0.10.1", "katex": "^0.16.9", "marked": "^9.1.0", + "marked-katex-extension": "^5.1.1", "mermaid": "^10.9.1", "pyodide": "^0.26.1", "socket.io-client": "^4.2.0", diff --git a/src/lib/components/chat/Messages/CodeBlock.svelte b/src/lib/components/chat/Messages/CodeBlock.svelte index daa8a8cd0..5fa4299ea 100644 --- a/src/lib/components/chat/Messages/CodeBlock.svelte +++ b/src/lib/components/chat/Messages/CodeBlock.svelte @@ -1,12 +1,15 @@ + +{@html katex.renderToString(content, { displayMode, throwOnError: false })} diff --git a/src/lib/components/chat/Messages/MarkdownInlineTokens.svelte b/src/lib/components/chat/Messages/MarkdownInlineTokens.svelte index 19d22de37..170429f4b 100644 --- a/src/lib/components/chat/Messages/MarkdownInlineTokens.svelte +++ b/src/lib/components/chat/Messages/MarkdownInlineTokens.svelte @@ -1,8 +1,11 @@ @@ -25,14 +28,21 @@ {:else if token.type === 'codespan'} - {unescapeHtml(token.text.replaceAll('&', '&'))} + {revertSanitizedResponseContent(token.raw)} {:else if token.type === 'br'}
{:else if token.type === 'del'} + {:else if token.type === 'inlineKatex'} + {#if token.text} + + {/if} {:else if token.type === 'text'} - {unescapeHtml(token.text)} + {token.raw} {/if} {/each} diff --git a/src/lib/components/chat/Messages/MarkdownTokens.svelte b/src/lib/components/chat/Messages/MarkdownTokens.svelte index 33b898485..089a0847a 100644 --- a/src/lib/components/chat/Messages/MarkdownTokens.svelte +++ b/src/lib/components/chat/Messages/MarkdownTokens.svelte @@ -1,137 +1,124 @@ -
- {#each tokens as token, tokenIdx (`${id}-${tokenIdx}`)} - {#if token.type === 'code'} - {#if token.lang === 'mermaid'} -
{revertSanitizedResponseContent(token.text)}
- {:else} - - {/if} + +{#each tokens as token, tokenIdx} + {#if token.type === 'hr'} +
+ {:else if token.type === 'heading'} + + + + {:else if token.type === 'code'} + + {:else if token.type === 'table'} + + + + {#each token.header as header, headerIdx} + + {/each} + + + + {#each token.rows as row, rowIdx} + + {#each row ?? [] as cell, cellIdx} + + {/each} + + {/each} + +
+ +
+ +
+ {:else if token.type === 'blockquote'} +
+ +
+ {:else if token.type === 'list'} + {#if token.ordered} +
    + {#each token.items as item, itemIdx} +
  1. + +
  2. + {/each} +
{:else} - {@html marked.parse(token.raw, { - ...defaults, - gfm: true, - breaks: true, - renderer - })} +
    + {#each token.items as item, itemIdx} +
  • + +
  • + {/each} +
{/if} - {/each} -
+ {:else if token.type === 'html'} + {@html token.text} + {:else if token.type === 'paragraph'} +

+ +

+ {:else if token.type === 'text'} + {#if top} +

+ {#if token.tokens} + + {:else} + {unescapeHtml(token.text)} + {/if} +

+ {:else if token.tokens} + + {:else} + {unescapeHtml(token.text)} + {/if} + {:else if token.type === 'inlineKatex'} + {#if token.text} + + {/if} + {:else if token.type === 'space'} + {''} + {:else} + {console.log('Unknown token', token)} + {/if} +{/each} diff --git a/src/lib/components/chat/Messages/ResponseMessage.svelte b/src/lib/components/chat/Messages/ResponseMessage.svelte index fdc846205..9621d67b0 100644 --- a/src/lib/components/chat/Messages/ResponseMessage.svelte +++ b/src/lib/components/chat/Messages/ResponseMessage.svelte @@ -4,7 +4,6 @@ import { marked } from 'marked'; import tippy from 'tippy.js'; import auto_render from 'katex/dist/contrib/auto-render.mjs'; - import 'katex/dist/katex.min.css'; import mermaid from 'mermaid'; import { fade } from 'svelte/transition'; @@ -79,76 +78,26 @@ let tokens; + import 'katex/dist/katex.min.css'; + + import markedKatex from '$lib/utils/katex-extension'; + const options = { + throwOnError: false + }; + + marked.use(markedKatex(options)); + $: (async () => { if (message?.content) { tokens = marked.lexer( replaceTokens(sanitizeResponseContent(message?.content), model?.name, $user?.name) ); - // console.log(message?.content, tokens); } })(); - $: if (message) { - renderStyling(); - } - - const renderStyling = async () => { - await tick(); - - if (tooltipInstance) { - tooltipInstance[0]?.destroy(); - } - + $: if (message?.done ?? false) { renderLatex(); - - if (message.info) { - let tooltipContent = ''; - if (message.info.openai) { - tooltipContent = `prompt_tokens: ${message.info.prompt_tokens ?? 'N/A'}
- completion_tokens: ${message.info.completion_tokens ?? 'N/A'}
- total_tokens: ${message.info.total_tokens ?? 'N/A'}`; - } else { - tooltipContent = `response_token/s: ${ - `${ - Math.round( - ((message.info.eval_count ?? 0) / (message.info.eval_duration / 1000000000)) * 100 - ) / 100 - } tokens` ?? 'N/A' - }
- prompt_token/s: ${ - Math.round( - ((message.info.prompt_eval_count ?? 0) / - (message.info.prompt_eval_duration / 1000000000)) * - 100 - ) / 100 ?? 'N/A' - } tokens
- total_duration: ${ - Math.round(((message.info.total_duration ?? 0) / 1000000) * 100) / 100 ?? - 'N/A' - }ms
- load_duration: ${ - Math.round(((message.info.load_duration ?? 0) / 1000000) * 100) / 100 ?? 'N/A' - }ms
- prompt_eval_count: ${message.info.prompt_eval_count ?? 'N/A'}
- prompt_eval_duration: ${ - Math.round(((message.info.prompt_eval_duration ?? 0) / 1000000) * 100) / - 100 ?? 'N/A' - }ms
- eval_count: ${message.info.eval_count ?? 'N/A'}
- eval_duration: ${ - Math.round(((message.info.eval_duration ?? 0) / 1000000) * 100) / 100 ?? 'N/A' - }ms
- approximate_total: ${approximateToHumanReadable(message.info.total_duration)}`; - } - tooltipInstance = tippy(`#info-${message.id}`, { - content: `${tooltipContent}`, - allowHTML: true, - theme: 'dark', - arrow: false, - offset: [0, 4] - }); - } - }; + } const renderLatex = () => { let chatMessageElements = document @@ -330,14 +279,14 @@ editedContent = ''; await tick(); - renderStyling(); + renderLatex(); }; const cancelEditMessage = async () => { edit = false; editedContent = ''; await tick(); - renderStyling(); + renderLatex(); }; const generateImage = async (message) => { @@ -362,7 +311,7 @@ $: if (!edit) { (async () => { await tick(); - renderStyling(); + renderLatex(); await mermaid.run({ querySelector: '.mermaid' @@ -372,7 +321,7 @@ onMount(async () => { await tick(); - renderStyling(); + renderLatex(); await mermaid.run({ querySelector: '.mermaid' @@ -420,7 +369,7 @@ {/if}
{#if (message?.statusHistory ?? [...(message?.status ? [message?.status] : [])]).length > 0} @@ -841,31 +790,71 @@ {/if} {#if message.info} - - + + + + + {/if} diff --git a/src/lib/i18n/locales/ar-BH/translation.json b/src/lib/i18n/locales/ar-BH/translation.json index 449131c65..281f7fd18 100644 --- a/src/lib/i18n/locales/ar-BH/translation.json +++ b/src/lib/i18n/locales/ar-BH/translation.json @@ -134,8 +134,10 @@ "Continue Response": "متابعة الرد", "Continue with {{provider}}": "", "Controls": "", + "Copied": "", "Copied shared chat URL to clipboard!": "تم نسخ عنوان URL للدردشة المشتركة إلى الحافظة", "Copy": "نسخ", + "Copy Code": "", "Copy last code block": "انسخ كتلة التعليمات البرمجية الأخيرة", "Copy last response": "انسخ الرد الأخير", "Copy Link": "أنسخ الرابط", @@ -499,6 +501,7 @@ "Rosé Pine": "Rosé Pine", "Rosé Pine Dawn": "Rosé Pine Dawn", "RTL": "من اليمين إلى اليسار", + "Run": "", "Run Llama 2, Code Llama, and other models. Customize and create your own.": "", "Running": "", "Save": "حفظ", diff --git a/src/lib/i18n/locales/bg-BG/translation.json b/src/lib/i18n/locales/bg-BG/translation.json index 76d79d961..3daf4acab 100644 --- a/src/lib/i18n/locales/bg-BG/translation.json +++ b/src/lib/i18n/locales/bg-BG/translation.json @@ -134,8 +134,10 @@ "Continue Response": "Продължи отговора", "Continue with {{provider}}": "", "Controls": "", + "Copied": "", "Copied shared chat URL to clipboard!": "Копирана е връзката за чат!", "Copy": "Копирай", + "Copy Code": "", "Copy last code block": "Копиране на последен код блок", "Copy last response": "Копиране на последен отговор", "Copy Link": "Копиране на връзка", @@ -499,6 +501,7 @@ "Rosé Pine": "Rosé Pine", "Rosé Pine Dawn": "Rosé Pine Dawn", "RTL": "RTL", + "Run": "", "Run Llama 2, Code Llama, and other models. Customize and create your own.": "", "Running": "", "Save": "Запис", diff --git a/src/lib/i18n/locales/bn-BD/translation.json b/src/lib/i18n/locales/bn-BD/translation.json index 4a42d872c..4f3bcb566 100644 --- a/src/lib/i18n/locales/bn-BD/translation.json +++ b/src/lib/i18n/locales/bn-BD/translation.json @@ -134,8 +134,10 @@ "Continue Response": "যাচাই করুন", "Continue with {{provider}}": "", "Controls": "", + "Copied": "", "Copied shared chat URL to clipboard!": "শেয়ারকৃত কথা-ব্যবহারের URL ক্লিপবোর্ডে কপি করা হয়েছে!", "Copy": "অনুলিপি", + "Copy Code": "", "Copy last code block": "সর্বশেষ কোড ব্লক কপি করুন", "Copy last response": "সর্বশেষ রেসপন্স কপি করুন", "Copy Link": "লিংক কপি করুন", @@ -499,6 +501,7 @@ "Rosé Pine": "রোজ পাইন", "Rosé Pine Dawn": "ভোরের রোজ পাইন", "RTL": "RTL", + "Run": "", "Run Llama 2, Code Llama, and other models. Customize and create your own.": "", "Running": "", "Save": "সংরক্ষণ", diff --git a/src/lib/i18n/locales/ca-ES/translation.json b/src/lib/i18n/locales/ca-ES/translation.json index 98aa48cd5..9b6f62ab7 100644 --- a/src/lib/i18n/locales/ca-ES/translation.json +++ b/src/lib/i18n/locales/ca-ES/translation.json @@ -134,8 +134,10 @@ "Continue Response": "Continuar la resposta", "Continue with {{provider}}": "Continuar amb {{provider}}", "Controls": "Controls", + "Copied": "Copiat", "Copied shared chat URL to clipboard!": "S'ha copiat l'URL compartida al porta-retalls!", "Copy": "Copiar", + "Copy Code": "Copiar el codi", "Copy last code block": "Copiar l'últim bloc de codi", "Copy last response": "Copiar l'última resposta", "Copy Link": "Copiar l'enllaç", @@ -499,6 +501,7 @@ "Rosé Pine": "Rosé Pine", "Rosé Pine Dawn": "Albada Rosé Pine", "RTL": "RTL", + "Run": "Executar", "Run Llama 2, Code Llama, and other models. Customize and create your own.": "Executa Llama 2, Code Llama, i altres models. Personalitza i crea els teus propis models.", "Running": "S'està executant", "Save": "Desar", @@ -509,7 +512,7 @@ "Scan": "Escanejar", "Scan complete!": "Escaneigr completat!", "Scan for documents from {{path}}": "Escanejar documents des de {{path}}", - "Scroll to bottom when switching between branches": "", + "Scroll to bottom when switching between branches": "Desplaçar a la part inferior quan es canviï de branca", "Search": "Cercar", "Search a model": "Cercar un model", "Search Chats": "Cercar xats", @@ -624,7 +627,7 @@ "To access the WebUI, please reach out to the administrator. Admins can manage user statuses from the Admin Panel.": "Per accedir a la WebUI, poseu-vos en contacte amb l'administrador. Els administradors poden gestionar els estats dels usuaris des del tauler d'administració.", "To add documents here, upload them to the \"Documents\" workspace first.": "Per afegir documents aquí, puja-ls primer a l'espai de treball \"Documents\".", "to chat input.": "a l'entrada del xat.", - "To select actions here, add them to the \"Functions\" workspace first.": "Per seleccionar accions aquí, afegeix-los primer a l'espai de treball \"Funcions\".", + "To select actions here, add them to the \"Functions\" workspace first.": "Per seleccionar accions aquí, afegeix-les primer a l'espai de treball \"Funcions\".", "To select filters here, add them to the \"Functions\" workspace first.": "Per seleccionar filtres aquí, afegeix-los primer a l'espai de treball \"Funcions\".", "To select toolkits here, add them to the \"Tools\" workspace first.": "Per seleccionar kits d'eines aquí, afegeix-los primer a l'espai de treball \"Eines\".", "Today": "Avui", diff --git a/src/lib/i18n/locales/ceb-PH/translation.json b/src/lib/i18n/locales/ceb-PH/translation.json index 644354f24..2e9464bb4 100644 --- a/src/lib/i18n/locales/ceb-PH/translation.json +++ b/src/lib/i18n/locales/ceb-PH/translation.json @@ -134,8 +134,10 @@ "Continue Response": "", "Continue with {{provider}}": "", "Controls": "", + "Copied": "", "Copied shared chat URL to clipboard!": "", "Copy": "", + "Copy Code": "", "Copy last code block": "Kopyaha ang katapusang bloke sa code", "Copy last response": "Kopyaha ang kataposang tubag", "Copy Link": "", @@ -499,6 +501,7 @@ "Rosé Pine": "Rosé Pine", "Rosé Pine Dawn": "Aube Pine Rosé", "RTL": "", + "Run": "", "Run Llama 2, Code Llama, and other models. Customize and create your own.": "", "Running": "", "Save": "Tipigi", diff --git a/src/lib/i18n/locales/de-DE/translation.json b/src/lib/i18n/locales/de-DE/translation.json index 2cca4158c..f7968d5ba 100644 --- a/src/lib/i18n/locales/de-DE/translation.json +++ b/src/lib/i18n/locales/de-DE/translation.json @@ -134,8 +134,10 @@ "Continue Response": "Antwort fortsetzen", "Continue with {{provider}}": "Mit {{provider}} fortfahren", "Controls": "", + "Copied": "", "Copied shared chat URL to clipboard!": "Freigabelink in die Zwischenablage kopiert!", "Copy": "Kopieren", + "Copy Code": "", "Copy last code block": "Letzten Codeblock kopieren", "Copy last response": "Letzte Antwort kopieren", "Copy Link": "Link kopieren", @@ -499,6 +501,7 @@ "Rosé Pine": "Rosé Pine", "Rosé Pine Dawn": "Rosé Pine Dawn", "RTL": "RTL", + "Run": "", "Run Llama 2, Code Llama, and other models. Customize and create your own.": "", "Running": "Läuft", "Save": "Speichern", diff --git a/src/lib/i18n/locales/dg-DG/translation.json b/src/lib/i18n/locales/dg-DG/translation.json index 8ad4a3fde..43ef3661c 100644 --- a/src/lib/i18n/locales/dg-DG/translation.json +++ b/src/lib/i18n/locales/dg-DG/translation.json @@ -134,8 +134,10 @@ "Continue Response": "", "Continue with {{provider}}": "", "Controls": "", + "Copied": "", "Copied shared chat URL to clipboard!": "", "Copy": "", + "Copy Code": "", "Copy last code block": "Copy last code block", "Copy last response": "Copy last response", "Copy Link": "", @@ -499,6 +501,7 @@ "Rosé Pine": "Rosé Pine", "Rosé Pine Dawn": "Rosé Pine Dawn", "RTL": "", + "Run": "", "Run Llama 2, Code Llama, and other models. Customize and create your own.": "", "Running": "", "Save": "Save much wow", diff --git a/src/lib/i18n/locales/en-GB/translation.json b/src/lib/i18n/locales/en-GB/translation.json index 817b79b40..107f83c15 100644 --- a/src/lib/i18n/locales/en-GB/translation.json +++ b/src/lib/i18n/locales/en-GB/translation.json @@ -134,8 +134,10 @@ "Continue Response": "", "Continue with {{provider}}": "", "Controls": "", + "Copied": "", "Copied shared chat URL to clipboard!": "", "Copy": "", + "Copy Code": "", "Copy last code block": "", "Copy last response": "", "Copy Link": "", @@ -499,6 +501,7 @@ "Rosé Pine": "", "Rosé Pine Dawn": "", "RTL": "", + "Run": "", "Run Llama 2, Code Llama, and other models. Customize and create your own.": "", "Running": "", "Save": "", diff --git a/src/lib/i18n/locales/en-US/translation.json b/src/lib/i18n/locales/en-US/translation.json index 817b79b40..107f83c15 100644 --- a/src/lib/i18n/locales/en-US/translation.json +++ b/src/lib/i18n/locales/en-US/translation.json @@ -134,8 +134,10 @@ "Continue Response": "", "Continue with {{provider}}": "", "Controls": "", + "Copied": "", "Copied shared chat URL to clipboard!": "", "Copy": "", + "Copy Code": "", "Copy last code block": "", "Copy last response": "", "Copy Link": "", @@ -499,6 +501,7 @@ "Rosé Pine": "", "Rosé Pine Dawn": "", "RTL": "", + "Run": "", "Run Llama 2, Code Llama, and other models. Customize and create your own.": "", "Running": "", "Save": "", diff --git a/src/lib/i18n/locales/es-ES/translation.json b/src/lib/i18n/locales/es-ES/translation.json index 90ba1c5a5..4611c6552 100644 --- a/src/lib/i18n/locales/es-ES/translation.json +++ b/src/lib/i18n/locales/es-ES/translation.json @@ -134,8 +134,10 @@ "Continue Response": "Continuar Respuesta", "Continue with {{provider}}": "Continuar con {{provider}}", "Controls": "", + "Copied": "", "Copied shared chat URL to clipboard!": "¡URL de chat compartido copiado al portapapeles!", "Copy": "Copiar", + "Copy Code": "", "Copy last code block": "Copia el último bloque de código", "Copy last response": "Copia la última respuesta", "Copy Link": "Copiar enlace", @@ -499,6 +501,7 @@ "Rosé Pine": "Rosé Pine", "Rosé Pine Dawn": "Rosé Pine Dawn", "RTL": "RTL", + "Run": "", "Run Llama 2, Code Llama, and other models. Customize and create your own.": "", "Running": "Ejecutando", "Save": "Guardar", diff --git a/src/lib/i18n/locales/fa-IR/translation.json b/src/lib/i18n/locales/fa-IR/translation.json index 789acf83a..a45c1f738 100644 --- a/src/lib/i18n/locales/fa-IR/translation.json +++ b/src/lib/i18n/locales/fa-IR/translation.json @@ -134,8 +134,10 @@ "Continue Response": "ادامه پاسخ", "Continue with {{provider}}": "", "Controls": "", + "Copied": "", "Copied shared chat URL to clipboard!": "URL چت به کلیپ بورد کپی شد!", "Copy": "کپی", + "Copy Code": "", "Copy last code block": "کپی آخرین بلوک کد", "Copy last response": "کپی آخرین پاسخ", "Copy Link": "کپی لینک", @@ -499,6 +501,7 @@ "Rosé Pine": "Rosé Pine", "Rosé Pine Dawn": "Rosé Pine Dawn", "RTL": "RTL", + "Run": "", "Run Llama 2, Code Llama, and other models. Customize and create your own.": "", "Running": "", "Save": "ذخیره", diff --git a/src/lib/i18n/locales/fi-FI/translation.json b/src/lib/i18n/locales/fi-FI/translation.json index 45741e477..c13384179 100644 --- a/src/lib/i18n/locales/fi-FI/translation.json +++ b/src/lib/i18n/locales/fi-FI/translation.json @@ -134,8 +134,10 @@ "Continue Response": "Jatka vastausta", "Continue with {{provider}}": "", "Controls": "", + "Copied": "", "Copied shared chat URL to clipboard!": "Jaettu keskustelulinkki kopioitu leikepöydälle!", "Copy": "Kopioi", + "Copy Code": "", "Copy last code block": "Kopioi viimeisin koodilohko", "Copy last response": "Kopioi viimeisin vastaus", "Copy Link": "Kopioi linkki", @@ -499,6 +501,7 @@ "Rosé Pine": "Rosee-mänty", "Rosé Pine Dawn": "Aamuinen Rosee-mänty", "RTL": "RTL", + "Run": "", "Run Llama 2, Code Llama, and other models. Customize and create your own.": "", "Running": "", "Save": "Tallenna", diff --git a/src/lib/i18n/locales/fr-CA/translation.json b/src/lib/i18n/locales/fr-CA/translation.json index dbbd6d8aa..cbeb68a01 100644 --- a/src/lib/i18n/locales/fr-CA/translation.json +++ b/src/lib/i18n/locales/fr-CA/translation.json @@ -134,8 +134,10 @@ "Continue Response": "Continuer la réponse", "Continue with {{provider}}": "Continuer avec {{provider}}", "Controls": "", + "Copied": "", "Copied shared chat URL to clipboard!": "URL du chat copiée dans le presse-papiers\u00a0!", "Copy": "Copie", + "Copy Code": "", "Copy last code block": "Copier le dernier bloc de code", "Copy last response": "Copier la dernière réponse", "Copy Link": "Copier le lien", @@ -499,6 +501,7 @@ "Rosé Pine": "Pin rosé", "Rosé Pine Dawn": "Aube de Pin Rosé", "RTL": "RTL", + "Run": "", "Run Llama 2, Code Llama, and other models. Customize and create your own.": "", "Running": "Courir", "Save": "Enregistrer", diff --git a/src/lib/i18n/locales/fr-FR/translation.json b/src/lib/i18n/locales/fr-FR/translation.json index 2da588cdb..e18f92edc 100644 --- a/src/lib/i18n/locales/fr-FR/translation.json +++ b/src/lib/i18n/locales/fr-FR/translation.json @@ -134,8 +134,10 @@ "Continue Response": "Continuer la réponse", "Continue with {{provider}}": "Continuer avec {{provider}}", "Controls": "", + "Copied": "", "Copied shared chat URL to clipboard!": "URL du chat copiée dans le presse-papiers\u00a0!", "Copy": "Copie", + "Copy Code": "", "Copy last code block": "Copier le dernier bloc de code", "Copy last response": "Copier la dernière réponse", "Copy Link": "Copier le lien", @@ -499,6 +501,7 @@ "Rosé Pine": "Pin rosé", "Rosé Pine Dawn": "Aube de Pin Rosé", "RTL": "RTL", + "Run": "", "Run Llama 2, Code Llama, and other models. Customize and create your own.": "", "Running": "Courir", "Save": "Enregistrer", diff --git a/src/lib/i18n/locales/he-IL/translation.json b/src/lib/i18n/locales/he-IL/translation.json index dc0f7ed85..c55578471 100644 --- a/src/lib/i18n/locales/he-IL/translation.json +++ b/src/lib/i18n/locales/he-IL/translation.json @@ -134,8 +134,10 @@ "Continue Response": "המשך תגובה", "Continue with {{provider}}": "", "Controls": "", + "Copied": "", "Copied shared chat URL to clipboard!": "העתקת כתובת URL של צ'אט משותף ללוח!", "Copy": "העתק", + "Copy Code": "", "Copy last code block": "העתק את בלוק הקוד האחרון", "Copy last response": "העתק את התגובה האחרונה", "Copy Link": "העתק קישור", @@ -499,6 +501,7 @@ "Rosé Pine": "Rosé Pine", "Rosé Pine Dawn": "Rosé Pine Dawn", "RTL": "RTL", + "Run": "", "Run Llama 2, Code Llama, and other models. Customize and create your own.": "", "Running": "", "Save": "שמור", diff --git a/src/lib/i18n/locales/hi-IN/translation.json b/src/lib/i18n/locales/hi-IN/translation.json index 1bc3817eb..7ebcda14b 100644 --- a/src/lib/i18n/locales/hi-IN/translation.json +++ b/src/lib/i18n/locales/hi-IN/translation.json @@ -134,8 +134,10 @@ "Continue Response": "प्रतिक्रिया जारी रखें", "Continue with {{provider}}": "", "Controls": "", + "Copied": "", "Copied shared chat URL to clipboard!": "साझा चैट URL को क्लिपबोर्ड पर कॉपी किया गया!", "Copy": "कॉपी", + "Copy Code": "", "Copy last code block": "अंतिम कोड ब्लॉक कॉपी करें", "Copy last response": "अंतिम प्रतिक्रिया कॉपी करें", "Copy Link": "लिंक को कॉपी करें", @@ -499,6 +501,7 @@ "Rosé Pine": "रोसे पिन", "Rosé Pine Dawn": "रोसे पिन डेन", "RTL": "RTL", + "Run": "", "Run Llama 2, Code Llama, and other models. Customize and create your own.": "", "Running": "", "Save": "सहेजें", diff --git a/src/lib/i18n/locales/hr-HR/translation.json b/src/lib/i18n/locales/hr-HR/translation.json index 32a8d4156..d5ae63484 100644 --- a/src/lib/i18n/locales/hr-HR/translation.json +++ b/src/lib/i18n/locales/hr-HR/translation.json @@ -134,8 +134,10 @@ "Continue Response": "Nastavi odgovor", "Continue with {{provider}}": "", "Controls": "", + "Copied": "", "Copied shared chat URL to clipboard!": "URL dijeljenog razgovora kopiran u međuspremnik!", "Copy": "Kopiraj", + "Copy Code": "", "Copy last code block": "Kopiraj zadnji blok koda", "Copy last response": "Kopiraj zadnji odgovor", "Copy Link": "Kopiraj vezu", @@ -499,6 +501,7 @@ "Rosé Pine": "Rosé Pine", "Rosé Pine Dawn": "Rosé Pine Dawn", "RTL": "RTL", + "Run": "", "Run Llama 2, Code Llama, and other models. Customize and create your own.": "", "Running": "Pokrenuto", "Save": "Spremi", diff --git a/src/lib/i18n/locales/id-ID/translation.json b/src/lib/i18n/locales/id-ID/translation.json index fa60d23f8..633ac78d9 100644 --- a/src/lib/i18n/locales/id-ID/translation.json +++ b/src/lib/i18n/locales/id-ID/translation.json @@ -134,8 +134,10 @@ "Continue Response": "Lanjutkan Tanggapan", "Continue with {{provider}}": "Lanjutkan dengan {{penyedia}}", "Controls": "", + "Copied": "", "Copied shared chat URL to clipboard!": "Menyalin URL obrolan bersama ke papan klip!", "Copy": "Menyalin", + "Copy Code": "", "Copy last code block": "Salin blok kode terakhir", "Copy last response": "Salin tanggapan terakhir", "Copy Link": "Salin Tautan", @@ -499,6 +501,7 @@ "Rosé Pine": "Pinus Rosé", "Rosé Pine Dawn": "Rosé Pine Fajar", "RTL": "RTL", + "Run": "", "Run Llama 2, Code Llama, and other models. Customize and create your own.": "", "Running": "Berjalan", "Save": "Simpan", diff --git a/src/lib/i18n/locales/it-IT/translation.json b/src/lib/i18n/locales/it-IT/translation.json index 138cee91d..514fa277d 100644 --- a/src/lib/i18n/locales/it-IT/translation.json +++ b/src/lib/i18n/locales/it-IT/translation.json @@ -134,8 +134,10 @@ "Continue Response": "Continua risposta", "Continue with {{provider}}": "", "Controls": "", + "Copied": "", "Copied shared chat URL to clipboard!": "URL della chat condivisa copiato negli appunti!", "Copy": "Copia", + "Copy Code": "", "Copy last code block": "Copia ultimo blocco di codice", "Copy last response": "Copia ultima risposta", "Copy Link": "Copia link", @@ -499,6 +501,7 @@ "Rosé Pine": "Rosé Pine", "Rosé Pine Dawn": "Rosé Pine Dawn", "RTL": "RTL", + "Run": "", "Run Llama 2, Code Llama, and other models. Customize and create your own.": "", "Running": "", "Save": "Salva", diff --git a/src/lib/i18n/locales/ja-JP/translation.json b/src/lib/i18n/locales/ja-JP/translation.json index 1d6fe5b41..fca1d3f10 100644 --- a/src/lib/i18n/locales/ja-JP/translation.json +++ b/src/lib/i18n/locales/ja-JP/translation.json @@ -134,8 +134,10 @@ "Continue Response": "続きの応答", "Continue with {{provider}}": "", "Controls": "", + "Copied": "", "Copied shared chat URL to clipboard!": "共有チャットURLをクリップボードにコピーしました!", "Copy": "コピー", + "Copy Code": "", "Copy last code block": "最後のコードブロックをコピー", "Copy last response": "最後の応答をコピー", "Copy Link": "リンクをコピー", @@ -499,6 +501,7 @@ "Rosé Pine": "Rosé Pine", "Rosé Pine Dawn": "Rosé Pine Dawn", "RTL": "RTL", + "Run": "", "Run Llama 2, Code Llama, and other models. Customize and create your own.": "", "Running": "", "Save": "保存", diff --git a/src/lib/i18n/locales/ka-GE/translation.json b/src/lib/i18n/locales/ka-GE/translation.json index 5c0799b5a..e332d37dd 100644 --- a/src/lib/i18n/locales/ka-GE/translation.json +++ b/src/lib/i18n/locales/ka-GE/translation.json @@ -134,8 +134,10 @@ "Continue Response": "პასუხის გაგრძელება", "Continue with {{provider}}": "", "Controls": "", + "Copied": "", "Copied shared chat URL to clipboard!": "ყავს ჩათის URL-ი კლიპბორდში!", "Copy": "კოპირება", + "Copy Code": "", "Copy last code block": "ბოლო ბლოკის კოპირება", "Copy last response": "ბოლო პასუხის კოპირება", "Copy Link": "კოპირება", @@ -499,6 +501,7 @@ "Rosé Pine": "ვარდისფერი ფიჭვის ხე", "Rosé Pine Dawn": "ვარდისფერი ფიჭვის გარიჟრაჟი", "RTL": "RTL", + "Run": "", "Run Llama 2, Code Llama, and other models. Customize and create your own.": "", "Running": "", "Save": "შენახვა", diff --git a/src/lib/i18n/locales/ko-KR/translation.json b/src/lib/i18n/locales/ko-KR/translation.json index 55809e8c4..0e683584c 100644 --- a/src/lib/i18n/locales/ko-KR/translation.json +++ b/src/lib/i18n/locales/ko-KR/translation.json @@ -134,8 +134,10 @@ "Continue Response": "대화 계속", "Continue with {{provider}}": "", "Controls": "", + "Copied": "", "Copied shared chat URL to clipboard!": "공유 채팅 URL이 클립보드에 복사되었습니다!", "Copy": "복사", + "Copy Code": "", "Copy last code block": "마지막 코드 블록 복사", "Copy last response": "마지막 응답 복사", "Copy Link": "링크 복사", @@ -499,6 +501,7 @@ "Rosé Pine": "Rosé Pine", "Rosé Pine Dawn": "Rosé Pine Dawn", "RTL": "RTL", + "Run": "", "Run Llama 2, Code Llama, and other models. Customize and create your own.": "", "Running": "실행 중", "Save": "저장", diff --git a/src/lib/i18n/locales/lt-LT/translation.json b/src/lib/i18n/locales/lt-LT/translation.json index 82d25f8d1..3dd31a25e 100644 --- a/src/lib/i18n/locales/lt-LT/translation.json +++ b/src/lib/i18n/locales/lt-LT/translation.json @@ -134,8 +134,10 @@ "Continue Response": "Tęsti atsakymą", "Continue with {{provider}}": "", "Controls": "", + "Copied": "", "Copied shared chat URL to clipboard!": "Nukopijavote pokalbio nuorodą", "Copy": "Kopijuoti", + "Copy Code": "", "Copy last code block": "Kopijuoti paskutinį kodo bloką", "Copy last response": "Kopijuoti paskutinį atsakymą", "Copy Link": "Kopijuoti nuorodą", @@ -499,6 +501,7 @@ "Rosé Pine": "Rosé Pine", "Rosé Pine Dawn": "Rosé Pine Dawn", "RTL": "", + "Run": "", "Run Llama 2, Code Llama, and other models. Customize and create your own.": "", "Running": "", "Save": "Išsaugoti", diff --git a/src/lib/i18n/locales/ms-MY/translation.json b/src/lib/i18n/locales/ms-MY/translation.json index ed482fa8f..aae6e9d6d 100644 --- a/src/lib/i18n/locales/ms-MY/translation.json +++ b/src/lib/i18n/locales/ms-MY/translation.json @@ -134,8 +134,10 @@ "Continue Response": "Teruskan Respons", "Continue with {{provider}}": "Teruskan dengan {{provider}}", "Controls": "Kawalan", + "Copied": "", "Copied shared chat URL to clipboard!": "Menyalin URL sembang kongsi ke papan klip", "Copy": "Salin", + "Copy Code": "", "Copy last code block": "Salin Blok Kod Terakhir", "Copy last response": "Salin Respons Terakhir", "Copy Link": "Salin Pautan", @@ -499,6 +501,7 @@ "Rosé Pine": "Rosé Pine", "Rosé Pine Dawn": "Rosé Pine Dawn", "RTL": "RTL", + "Run": "", "Run Llama 2, Code Llama, and other models. Customize and create your own.": "Jalankan Llama 2, Code Llama dan model lain. Sesuaikan dan buat sendiri.", "Running": "Sedang dijalankan", "Save": "Simpan", diff --git a/src/lib/i18n/locales/nb-NO/translation.json b/src/lib/i18n/locales/nb-NO/translation.json index 0700915c3..bb914fed4 100644 --- a/src/lib/i18n/locales/nb-NO/translation.json +++ b/src/lib/i18n/locales/nb-NO/translation.json @@ -134,8 +134,10 @@ "Continue Response": "Fortsett svar", "Continue with {{provider}}": "Fortsett med {{provider}}", "Controls": "Kontroller", + "Copied": "", "Copied shared chat URL to clipboard!": "Kopiert delt chat-URL til utklippstavlen!", "Copy": "Kopier", + "Copy Code": "", "Copy last code block": "Kopier siste kodeblokk", "Copy last response": "Kopier siste svar", "Copy Link": "Kopier lenke", @@ -499,6 +501,7 @@ "Rosé Pine": "Rosé Pine", "Rosé Pine Dawn": "Rosé Pine Dawn", "RTL": "RTL", + "Run": "", "Run Llama 2, Code Llama, and other models. Customize and create your own.": "Kjør Llama 2, Code Llama og andre modeller. Tilpass og lag egne versjoner.", "Running": "Kjører", "Save": "Lagre", diff --git a/src/lib/i18n/locales/nl-NL/translation.json b/src/lib/i18n/locales/nl-NL/translation.json index c1ba4efdf..f4021dd67 100644 --- a/src/lib/i18n/locales/nl-NL/translation.json +++ b/src/lib/i18n/locales/nl-NL/translation.json @@ -134,8 +134,10 @@ "Continue Response": "Doorgaan met Antwoord", "Continue with {{provider}}": "", "Controls": "", + "Copied": "", "Copied shared chat URL to clipboard!": "URL van gedeelde gesprekspagina gekopieerd naar klembord!", "Copy": "Kopieer", + "Copy Code": "", "Copy last code block": "Kopieer laatste code blok", "Copy last response": "Kopieer laatste antwoord", "Copy Link": "Kopieer Link", @@ -499,6 +501,7 @@ "Rosé Pine": "Rosé Pine", "Rosé Pine Dawn": "Rosé Pine Dawn", "RTL": "RTL", + "Run": "", "Run Llama 2, Code Llama, and other models. Customize and create your own.": "", "Running": "", "Save": "Opslaan", diff --git a/src/lib/i18n/locales/pa-IN/translation.json b/src/lib/i18n/locales/pa-IN/translation.json index de55b885f..9fe7854b4 100644 --- a/src/lib/i18n/locales/pa-IN/translation.json +++ b/src/lib/i18n/locales/pa-IN/translation.json @@ -134,8 +134,10 @@ "Continue Response": "ਜਵਾਬ ਜਾਰੀ ਰੱਖੋ", "Continue with {{provider}}": "", "Controls": "", + "Copied": "", "Copied shared chat URL to clipboard!": "ਸਾਂਝੇ ਕੀਤੇ ਗੱਲਬਾਤ URL ਨੂੰ ਕਲਿੱਪਬੋਰਡ 'ਤੇ ਕਾਪੀ ਕਰ ਦਿੱਤਾ!", "Copy": "ਕਾਪੀ ਕਰੋ", + "Copy Code": "", "Copy last code block": "ਆਖਰੀ ਕੋਡ ਬਲਾਕ ਨੂੰ ਕਾਪੀ ਕਰੋ", "Copy last response": "ਆਖਰੀ ਜਵਾਬ ਨੂੰ ਕਾਪੀ ਕਰੋ", "Copy Link": "ਲਿੰਕ ਕਾਪੀ ਕਰੋ", @@ -499,6 +501,7 @@ "Rosé Pine": "ਰੋਜ਼ ਪਾਈਨ", "Rosé Pine Dawn": "ਰੋਜ਼ ਪਾਈਨ ਡਾਨ", "RTL": "RTL", + "Run": "", "Run Llama 2, Code Llama, and other models. Customize and create your own.": "", "Running": "", "Save": "ਸੰਭਾਲੋ", diff --git a/src/lib/i18n/locales/pl-PL/translation.json b/src/lib/i18n/locales/pl-PL/translation.json index 901f55ef6..c752fdac0 100644 --- a/src/lib/i18n/locales/pl-PL/translation.json +++ b/src/lib/i18n/locales/pl-PL/translation.json @@ -134,8 +134,10 @@ "Continue Response": "Kontynuuj odpowiedź", "Continue with {{provider}}": "", "Controls": "", + "Copied": "", "Copied shared chat URL to clipboard!": "Skopiowano URL czatu do schowka!", "Copy": "Kopiuj", + "Copy Code": "", "Copy last code block": "Skopiuj ostatni blok kodu", "Copy last response": "Skopiuj ostatnią odpowiedź", "Copy Link": "Kopiuj link", @@ -499,6 +501,7 @@ "Rosé Pine": "Rosé Pine", "Rosé Pine Dawn": "Rosé Pine Dawn", "RTL": "RLT", + "Run": "", "Run Llama 2, Code Llama, and other models. Customize and create your own.": "", "Running": "", "Save": "Zapisz", diff --git a/src/lib/i18n/locales/pt-BR/translation.json b/src/lib/i18n/locales/pt-BR/translation.json index 34df9129d..3a75a847a 100644 --- a/src/lib/i18n/locales/pt-BR/translation.json +++ b/src/lib/i18n/locales/pt-BR/translation.json @@ -134,8 +134,10 @@ "Continue Response": "Continuar Resposta", "Continue with {{provider}}": "Continuar com {{provider}}", "Controls": "Controles", + "Copied": "", "Copied shared chat URL to clipboard!": "URL de chat compartilhado copiado para a área de transferência!", "Copy": "Copiar", + "Copy Code": "", "Copy last code block": "Copiar último bloco de código", "Copy last response": "Copiar última resposta", "Copy Link": "Copiar Link", @@ -499,6 +501,7 @@ "Rosé Pine": "Rosé Pine", "Rosé Pine Dawn": "Rosé Pine Dawn", "RTL": "RTL", + "Run": "", "Run Llama 2, Code Llama, and other models. Customize and create your own.": "Execute Llama 2, Code Llama e outros modelos. Personalize e crie os seus próprios.", "Running": "Executando", "Save": "Salvar", diff --git a/src/lib/i18n/locales/pt-PT/translation.json b/src/lib/i18n/locales/pt-PT/translation.json index 9313879eb..cba72ee9f 100644 --- a/src/lib/i18n/locales/pt-PT/translation.json +++ b/src/lib/i18n/locales/pt-PT/translation.json @@ -134,8 +134,10 @@ "Continue Response": "Continuar resposta", "Continue with {{provider}}": "", "Controls": "", + "Copied": "", "Copied shared chat URL to clipboard!": "URL de Conversa partilhado copiada com sucesso!", "Copy": "Copiar", + "Copy Code": "", "Copy last code block": "Copiar último bloco de código", "Copy last response": "Copiar última resposta", "Copy Link": "Copiar link", @@ -499,6 +501,7 @@ "Rosé Pine": "Rosé Pine", "Rosé Pine Dawn": "Rosé Pine Dawn", "RTL": "RTL", + "Run": "", "Run Llama 2, Code Llama, and other models. Customize and create your own.": "", "Running": "A correr", "Save": "Guardar", diff --git a/src/lib/i18n/locales/ro-RO/translation.json b/src/lib/i18n/locales/ro-RO/translation.json index 4154631a4..41deca909 100644 --- a/src/lib/i18n/locales/ro-RO/translation.json +++ b/src/lib/i18n/locales/ro-RO/translation.json @@ -134,8 +134,10 @@ "Continue Response": "Continuă Răspunsul", "Continue with {{provider}}": "Continuă cu {{provider}}", "Controls": "Controale", + "Copied": "", "Copied shared chat URL to clipboard!": "URL-ul conversației partajate a fost copiat în clipboard!", "Copy": "Copiază", + "Copy Code": "", "Copy last code block": "Copiază ultimul bloc de cod", "Copy last response": "Copiază ultimul răspuns", "Copy Link": "Copiază Link", @@ -499,6 +501,7 @@ "Rosé Pine": "Rosé Pine", "Rosé Pine Dawn": "Rosé Pine Dawn", "RTL": "RTL", + "Run": "", "Run Llama 2, Code Llama, and other models. Customize and create your own.": "Rulați Llama 2, Code Llama și alte modele. Personalizați și creați-vă propriile modele.", "Running": "Rulare", "Save": "Salvează", diff --git a/src/lib/i18n/locales/ru-RU/translation.json b/src/lib/i18n/locales/ru-RU/translation.json index 806a1e7b9..c62984757 100644 --- a/src/lib/i18n/locales/ru-RU/translation.json +++ b/src/lib/i18n/locales/ru-RU/translation.json @@ -134,8 +134,10 @@ "Continue Response": "Продолжить ответ", "Continue with {{provider}}": "", "Controls": "", + "Copied": "", "Copied shared chat URL to clipboard!": "Копирование общей ссылки чат в буфер обмена!", "Copy": "Копировать", + "Copy Code": "", "Copy last code block": "Копировать последний блок кода", "Copy last response": "Копировать последний ответ", "Copy Link": "Копировать ссылку", @@ -499,6 +501,7 @@ "Rosé Pine": "Розовое сосновое дерево", "Rosé Pine Dawn": "Розовое сосновое дерево рассвет", "RTL": "RTL", + "Run": "", "Run Llama 2, Code Llama, and other models. Customize and create your own.": "", "Running": "", "Save": "Сохранить", diff --git a/src/lib/i18n/locales/sr-RS/translation.json b/src/lib/i18n/locales/sr-RS/translation.json index a6722c14a..558d25f70 100644 --- a/src/lib/i18n/locales/sr-RS/translation.json +++ b/src/lib/i18n/locales/sr-RS/translation.json @@ -134,8 +134,10 @@ "Continue Response": "Настави одговор", "Continue with {{provider}}": "", "Controls": "", + "Copied": "", "Copied shared chat URL to clipboard!": "Адреса дељеног ћаскања ископирана у оставу!", "Copy": "Копирај", + "Copy Code": "", "Copy last code block": "Копирај последњи блок кода", "Copy last response": "Копирај последњи одговор", "Copy Link": "Копирај везу", @@ -499,6 +501,7 @@ "Rosé Pine": "Rosé Pine", "Rosé Pine Dawn": "Rosé Pine Dawn", "RTL": "ДНЛ", + "Run": "", "Run Llama 2, Code Llama, and other models. Customize and create your own.": "", "Running": "", "Save": "Сачувај", diff --git a/src/lib/i18n/locales/sv-SE/translation.json b/src/lib/i18n/locales/sv-SE/translation.json index a69343945..0edcc440d 100644 --- a/src/lib/i18n/locales/sv-SE/translation.json +++ b/src/lib/i18n/locales/sv-SE/translation.json @@ -134,8 +134,10 @@ "Continue Response": "Fortsätt svar", "Continue with {{provider}}": "", "Controls": "", + "Copied": "", "Copied shared chat URL to clipboard!": "Kopierad delad chatt-URL till urklipp!", "Copy": "Kopiera", + "Copy Code": "", "Copy last code block": "Kopiera sista kodblock", "Copy last response": "Kopiera sista svar", "Copy Link": "Kopiera länk", @@ -499,6 +501,7 @@ "Rosé Pine": "Rosé Pine", "Rosé Pine Dawn": "Rosé Pine Dawn", "RTL": "RTL", + "Run": "", "Run Llama 2, Code Llama, and other models. Customize and create your own.": "", "Running": "Kör", "Save": "Spara", diff --git a/src/lib/i18n/locales/th-TH/translation.json b/src/lib/i18n/locales/th-TH/translation.json index 198578bea..b4788a068 100644 --- a/src/lib/i18n/locales/th-TH/translation.json +++ b/src/lib/i18n/locales/th-TH/translation.json @@ -134,8 +134,10 @@ "Continue Response": "ตอบสนองต่อไป", "Continue with {{provider}}": "ดำเนินการต่อด้วย {{provider}}", "Controls": "การควบคุม", + "Copied": "", "Copied shared chat URL to clipboard!": "คัดลอก URL แชทที่แชร์ไปยังคลิปบอร์ดแล้ว!", "Copy": "คัดลอก", + "Copy Code": "", "Copy last code block": "คัดลอกบล็อกโค้ดสุดท้าย", "Copy last response": "คัดลอกการตอบสนองล่าสุด", "Copy Link": "คัดลอกลิงก์", @@ -499,6 +501,7 @@ "Rosé Pine": "Rosé Pine", "Rosé Pine Dawn": "Rosé Pine Dawn", "RTL": "RTL", + "Run": "", "Run Llama 2, Code Llama, and other models. Customize and create your own.": "รัน Llama 2, Code Llama และโมเดลอื่นๆ ปรับแต่งและสร้างของคุณเอง", "Running": "กำลังทำงาน", "Save": "บันทึก", diff --git a/src/lib/i18n/locales/tk-TW/translation.json b/src/lib/i18n/locales/tk-TW/translation.json index 817b79b40..107f83c15 100644 --- a/src/lib/i18n/locales/tk-TW/translation.json +++ b/src/lib/i18n/locales/tk-TW/translation.json @@ -134,8 +134,10 @@ "Continue Response": "", "Continue with {{provider}}": "", "Controls": "", + "Copied": "", "Copied shared chat URL to clipboard!": "", "Copy": "", + "Copy Code": "", "Copy last code block": "", "Copy last response": "", "Copy Link": "", @@ -499,6 +501,7 @@ "Rosé Pine": "", "Rosé Pine Dawn": "", "RTL": "", + "Run": "", "Run Llama 2, Code Llama, and other models. Customize and create your own.": "", "Running": "", "Save": "", diff --git a/src/lib/i18n/locales/tr-TR/translation.json b/src/lib/i18n/locales/tr-TR/translation.json index 8f81acb5f..00276d422 100644 --- a/src/lib/i18n/locales/tr-TR/translation.json +++ b/src/lib/i18n/locales/tr-TR/translation.json @@ -134,8 +134,10 @@ "Continue Response": "Yanıta Devam Et", "Continue with {{provider}}": "{{provider}} ile devam et", "Controls": "", + "Copied": "", "Copied shared chat URL to clipboard!": "Paylaşılan sohbet URL'si panoya kopyalandı!", "Copy": "Kopyala", + "Copy Code": "", "Copy last code block": "Son kod bloğunu kopyala", "Copy last response": "Son yanıtı kopyala", "Copy Link": "Bağlantıyı Kopyala", @@ -499,6 +501,7 @@ "Rosé Pine": "Rosé Pine", "Rosé Pine Dawn": "Rosé Pine Dawn", "RTL": "RTL", + "Run": "", "Run Llama 2, Code Llama, and other models. Customize and create your own.": "", "Running": "Çalışıyor", "Save": "Kaydet", diff --git a/src/lib/i18n/locales/uk-UA/translation.json b/src/lib/i18n/locales/uk-UA/translation.json index f5e137b29..4a9728d66 100644 --- a/src/lib/i18n/locales/uk-UA/translation.json +++ b/src/lib/i18n/locales/uk-UA/translation.json @@ -134,8 +134,10 @@ "Continue Response": "Продовжити відповідь", "Continue with {{provider}}": "Продовжити з {{provider}}", "Controls": "Керування", + "Copied": "Скопійовано", "Copied shared chat URL to clipboard!": "Скопійовано URL-адресу спільного чату в буфер обміну!", "Copy": "Копіювати", + "Copy Code": "Копіювати код", "Copy last code block": "Копіювати останній блок коду", "Copy last response": "Копіювати останню відповідь", "Copy Link": "Копіювати посилання", @@ -375,7 +377,7 @@ "Memory deleted successfully": "Пам'ять успішно видалено", "Memory updated successfully": "Пам'ять успішно оновлено", "Messages you send after creating your link won't be shared. Users with the URL will be able to view the shared chat.": "Повідомлення, які ви надішлете після створення посилання, не будуть доступні для інших. Користувачі, які мають URL, зможуть переглядати спільний чат.", - "Min P": "", + "Min P": "Min P", "Minimum Score": "Мінімальний бал", "Mirostat": "Mirostat", "Mirostat Eta": "Mirostat Eta", @@ -499,6 +501,7 @@ "Rosé Pine": "Rosé Pine", "Rosé Pine Dawn": "Rosé Pine Dawn", "RTL": "RTL", + "Run": "Запустити", "Run Llama 2, Code Llama, and other models. Customize and create your own.": "Запустіть Llama 2, Code Llama та інші моделі. Налаштуйте та створіть власну.", "Running": "Виконується", "Save": "Зберегти", @@ -509,7 +512,7 @@ "Scan": "Сканування", "Scan complete!": "Сканування завершено!", "Scan for documents from {{path}}": "Сканування документів з {{path}}", - "Scroll to bottom when switching between branches": "", + "Scroll to bottom when switching between branches": "Перемотувати до кінця при перемиканні між гілками", "Search": "Пошук", "Search a model": "Шукати модель", "Search Chats": "Пошук в чатах", diff --git a/src/lib/i18n/locales/vi-VN/translation.json b/src/lib/i18n/locales/vi-VN/translation.json index c77119809..b0e5db982 100644 --- a/src/lib/i18n/locales/vi-VN/translation.json +++ b/src/lib/i18n/locales/vi-VN/translation.json @@ -134,8 +134,10 @@ "Continue Response": "Tiếp tục trả lời", "Continue with {{provider}}": "Tiếp tục với {{provider}}", "Controls": "", + "Copied": "", "Copied shared chat URL to clipboard!": "Đã sao chép link chia sẻ trò chuyện vào clipboard!", "Copy": "Sao chép", + "Copy Code": "", "Copy last code block": "Sao chép khối mã cuối cùng", "Copy last response": "Sao chép phản hồi cuối cùng", "Copy Link": "Sao chép link", @@ -499,6 +501,7 @@ "Rosé Pine": "Rosé Pine", "Rosé Pine Dawn": "Rosé Pine Dawn", "RTL": "RTL", + "Run": "", "Run Llama 2, Code Llama, and other models. Customize and create your own.": "Chạy Llama 2, Code Llama và các mô hình khác. Tùy chỉnh hoặc mô hình riêng của bạn.", "Running": "Đang chạy", "Save": "Lưu", diff --git a/src/lib/i18n/locales/zh-CN/translation.json b/src/lib/i18n/locales/zh-CN/translation.json index 0ba6f840e..27ad74254 100644 --- a/src/lib/i18n/locales/zh-CN/translation.json +++ b/src/lib/i18n/locales/zh-CN/translation.json @@ -134,8 +134,10 @@ "Continue Response": "继续生成", "Continue with {{provider}}": "使用 {{provider}} 继续", "Controls": "对话高级设置", + "Copied": "已复制", "Copied shared chat URL to clipboard!": "已复制此对话分享链接至剪贴板!", "Copy": "复制", + "Copy Code": "复制代码", "Copy last code block": "复制最后一个代码块中的代码", "Copy last response": "复制最后一次回复内容", "Copy Link": "复制链接", @@ -499,6 +501,7 @@ "Rosé Pine": "Rosé Pine", "Rosé Pine Dawn": "Rosé Pine Dawn", "RTL": "从右至左", + "Run": "运行", "Run Llama 2, Code Llama, and other models. Customize and create your own.": "运行 Llama 2、Code Llama 和其他模型。自定义和创建您自己的模型。", "Running": "运行中", "Save": "保存", @@ -509,7 +512,7 @@ "Scan": "立即扫描", "Scan complete!": "扫描完成!", "Scan for documents from {{path}}": "从 {{path}} 扫描文档", - "Scroll to bottom when switching between branches": "", + "Scroll to bottom when switching between branches": "在分支间切换时滚动到底部", "Search": "搜索", "Search a model": "搜索模型", "Search Chats": "搜索对话", diff --git a/src/lib/i18n/locales/zh-TW/translation.json b/src/lib/i18n/locales/zh-TW/translation.json index 867bacae9..8b7079e68 100644 --- a/src/lib/i18n/locales/zh-TW/translation.json +++ b/src/lib/i18n/locales/zh-TW/translation.json @@ -134,8 +134,10 @@ "Continue Response": "繼續回應", "Continue with {{provider}}": "使用 {{provider}} 繼續", "Controls": "控制項", + "Copied": "", "Copied shared chat URL to clipboard!": "已複製共用對話 URL 到剪貼簿!", "Copy": "複製", + "Copy Code": "", "Copy last code block": "複製最後一個程式碼區塊", "Copy last response": "複製最後一個回應", "Copy Link": "複製連結", @@ -499,6 +501,7 @@ "Rosé Pine": "玫瑰松", "Rosé Pine Dawn": "黎明玫瑰松", "RTL": "從右到左", + "Run": "", "Run Llama 2, Code Llama, and other models. Customize and create your own.": "執行 Llama 2、Code Llama 和其他模型。自訂並建立您自己的模型。", "Running": "運作中", "Save": "儲存", diff --git a/src/lib/utils/index.ts b/src/lib/utils/index.ts index 385b006ab..de3a2ca2c 100644 --- a/src/lib/utils/index.ts +++ b/src/lib/utils/index.ts @@ -9,7 +9,7 @@ import { WEBUI_BASE_URL } from '$lib/constants'; const convertLatexToSingleLine = (content) => { // Patterns to match multiline LaTeX blocks const patterns = [ - /(\$\$[\s\S]*?\$\$)/g, // Match $$ ... $$ + /(\$\$\s[\s\S]*?\s\$\$)/g, // Match $$ ... $$ /(\\\[[\s\S]*?\\\])/g, // Match \[ ... \] /(\\begin\{[a-z]+\}[\s\S]*?\\end\{[a-z]+\})/g // Match \begin{...} ... \end{...} ]; @@ -25,7 +25,8 @@ const convertLatexToSingleLine = (content) => { export const sanitizeResponseContent = (content: string) => { // replace single backslash with double backslash - content = content.replace(/\\/g, '\\\\'); + content = content.replace(/\\\\/g, '\\\\\\\\'); + content = convertLatexToSingleLine(content); // First, temporarily replace valid