mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 18:26:48 +00:00
refac: think tag
This commit is contained in:
parent
e99453219a
commit
3527023d88
@ -13,8 +13,6 @@
|
|||||||
for (const locale of locales) {
|
for (const locale of locales) {
|
||||||
try {
|
try {
|
||||||
dayjs.locale(locale);
|
dayjs.locale(locale);
|
||||||
|
|
||||||
console.log(`Loaded locale: ${locale}`);
|
|
||||||
break; // Stop after successfully loading the first available locale
|
break; // Stop after successfully loading the first available locale
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(`Could not load locale '${locale}':`, error);
|
console.error(`Could not load locale '${locale}':`, error);
|
||||||
@ -74,10 +72,14 @@
|
|||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<div class="">
|
<div class="">
|
||||||
{#if attributes?.type === 'reasoning' && attributes?.done === 'true' && attributes?.duration}
|
{#if attributes?.type === 'reasoning'}
|
||||||
|
{#if attributes?.done === 'true' && attributes?.duration}
|
||||||
{$i18n.t('Thought for {{DURATION}}', {
|
{$i18n.t('Thought for {{DURATION}}', {
|
||||||
DURATION: dayjs.duration(attributes.duration, 'seconds').humanize()
|
DURATION: dayjs.duration(attributes.duration, 'seconds').humanize()
|
||||||
})}
|
})}
|
||||||
|
{:else}
|
||||||
|
{$i18n.t('Thinking...')}
|
||||||
|
{/if}
|
||||||
{:else}
|
{:else}
|
||||||
{title}
|
{title}
|
||||||
{/if}
|
{/if}
|
||||||
|
@ -934,7 +934,7 @@
|
|||||||
"This will delete all models including custom models and cannot be undone.": "",
|
"This will delete all models including custom models and cannot be undone.": "",
|
||||||
"This will reset the knowledge base and sync all files. Do you wish to continue?": "지식 기반과 모든 파일 연동을 초기화합니다. 계속 하시겠습니까?",
|
"This will reset the knowledge base and sync all files. Do you wish to continue?": "지식 기반과 모든 파일 연동을 초기화합니다. 계속 하시겠습니까?",
|
||||||
"Thorough explanation": "완전한 설명",
|
"Thorough explanation": "완전한 설명",
|
||||||
"Thought for {{DURATION}}": "",
|
"Thought for {{DURATION}}": "{{DURATION}} 동안 생각함",
|
||||||
"Tika": "티카(Tika)",
|
"Tika": "티카(Tika)",
|
||||||
"Tika Server URL required.": "티카 서버 URL이 필요합니다",
|
"Tika Server URL required.": "티카 서버 URL이 필요합니다",
|
||||||
"Tiktoken": "틱토큰 (Tiktoken)",
|
"Tiktoken": "틱토큰 (Tiktoken)",
|
||||||
|
Loading…
Reference in New Issue
Block a user