mirror of
https://github.com/open-webui/open-webui
synced 2025-05-25 15:15:28 +00:00
refactor(lint): code lint
This commit is contained in:
parent
92fb1109b6
commit
72ea6dd9f1
@ -387,8 +387,12 @@
|
|||||||
<div class="flex items-center relative">
|
<div class="flex items-center relative">
|
||||||
<Tooltip
|
<Tooltip
|
||||||
content={BYPASS_EMBEDDING_AND_RETRIEVAL
|
content={BYPASS_EMBEDDING_AND_RETRIEVAL
|
||||||
? $i18n.t('Inject the entire content as context for comprehensive processing, this is recommended for complex queries.')
|
? $i18n.t(
|
||||||
: $i18n.t('Default to segmented retrieval for focused and relevant content extraction, this is recommended for most cases.')}
|
'Inject the entire content as context for comprehensive processing, this is recommended for complex queries.'
|
||||||
|
)
|
||||||
|
: $i18n.t(
|
||||||
|
'Default to segmented retrieval for focused and relevant content extraction, this is recommended for most cases.'
|
||||||
|
)}
|
||||||
>
|
>
|
||||||
<Switch bind:state={BYPASS_EMBEDDING_AND_RETRIEVAL} />
|
<Switch bind:state={BYPASS_EMBEDDING_AND_RETRIEVAL} />
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
@ -625,8 +629,12 @@
|
|||||||
<div class="flex items-center relative">
|
<div class="flex items-center relative">
|
||||||
<Tooltip
|
<Tooltip
|
||||||
content={RAG_FULL_CONTEXT
|
content={RAG_FULL_CONTEXT
|
||||||
? $i18n.t('Inject the entire content as context for comprehensive processing, this is recommended for complex queries.')
|
? $i18n.t(
|
||||||
: $i18n.t('Default to segmented retrieval for focused and relevant content extraction, this is recommended for most cases.')}
|
'Inject the entire content as context for comprehensive processing, this is recommended for complex queries.'
|
||||||
|
)
|
||||||
|
: $i18n.t(
|
||||||
|
'Default to segmented retrieval for focused and relevant content extraction, this is recommended for most cases.'
|
||||||
|
)}
|
||||||
>
|
>
|
||||||
<Switch bind:state={RAG_FULL_CONTEXT} />
|
<Switch bind:state={RAG_FULL_CONTEXT} />
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
@ -462,8 +462,12 @@
|
|||||||
<div class="flex items-center relative">
|
<div class="flex items-center relative">
|
||||||
<Tooltip
|
<Tooltip
|
||||||
content={webConfig.BYPASS_WEB_SEARCH_EMBEDDING_AND_RETRIEVAL
|
content={webConfig.BYPASS_WEB_SEARCH_EMBEDDING_AND_RETRIEVAL
|
||||||
? $i18n.t('Inject the entire content as context for comprehensive processing, this is recommended for complex queries.')
|
? $i18n.t(
|
||||||
: $i18n.t('Default to segmented retrieval for focused and relevant content extraction, this is recommended for most cases.')}
|
'Inject the entire content as context for comprehensive processing, this is recommended for complex queries.'
|
||||||
|
)
|
||||||
|
: $i18n.t(
|
||||||
|
'Default to segmented retrieval for focused and relevant content extraction, this is recommended for most cases.'
|
||||||
|
)}
|
||||||
>
|
>
|
||||||
<Switch bind:state={webConfig.BYPASS_WEB_SEARCH_EMBEDDING_AND_RETRIEVAL} />
|
<Switch bind:state={webConfig.BYPASS_WEB_SEARCH_EMBEDDING_AND_RETRIEVAL} />
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
@ -73,15 +73,13 @@
|
|||||||
<div class="text-2xl font-medium capitalize">{channel.name}</div>
|
<div class="text-2xl font-medium capitalize">{channel.name}</div>
|
||||||
|
|
||||||
<div class=" text-gray-500">
|
<div class=" text-gray-500">
|
||||||
{
|
{$i18n.t(
|
||||||
$i18n.t(
|
'This channel was created on {{createdAt}}. This is the very beginning of the {{channelName}} channel.',
|
||||||
'This channel was created on {{createdAt}}. This is the very beginning of the {{channelName}} channel.',
|
{
|
||||||
{
|
createdAt: dayjs(channel.created_at / 1000000).format('MMMM D, YYYY'),
|
||||||
createdAt: dayjs(channel.created_at / 1000000).format('MMMM D, YYYY'),
|
channelName: channel.name
|
||||||
channelName: channel.name,
|
}
|
||||||
}
|
)}
|
||||||
)
|
|
||||||
}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{:else}
|
{:else}
|
||||||
|
@ -441,7 +441,9 @@
|
|||||||
|
|
||||||
{#if ($config?.features?.enable_code_execution ?? true) && (lang.toLowerCase() === 'python' || lang.toLowerCase() === 'py' || (lang === '' && checkPythonCode(code)))}
|
{#if ($config?.features?.enable_code_execution ?? true) && (lang.toLowerCase() === 'python' || lang.toLowerCase() === 'py' || (lang === '' && checkPythonCode(code)))}
|
||||||
{#if executing}
|
{#if executing}
|
||||||
<div class="run-code-button bg-none border-none p-1 cursor-not-allowed">{$i18n.t('Running')}</div>
|
<div class="run-code-button bg-none border-none p-1 cursor-not-allowed">
|
||||||
|
{$i18n.t('Running')}
|
||||||
|
</div>
|
||||||
{:else if run}
|
{:else if run}
|
||||||
<button
|
<button
|
||||||
class="flex gap-1 items-center run-code-button bg-none border-none bg-gray-50 hover:bg-gray-100 dark:bg-gray-850 dark:hover:bg-gray-800 transition rounded-md px-1.5 py-0.5"
|
class="flex gap-1 items-center run-code-button bg-none border-none bg-gray-50 hover:bg-gray-100 dark:bg-gray-850 dark:hover:bg-gray-800 transition rounded-md px-1.5 py-0.5"
|
||||||
|
@ -87,8 +87,12 @@
|
|||||||
<div>
|
<div>
|
||||||
<Tooltip
|
<Tooltip
|
||||||
content={enableFullContent
|
content={enableFullContent
|
||||||
? $i18n.t('Inject the entire content as context for comprehensive processing, this is recommended for complex queries.')
|
? $i18n.t(
|
||||||
: $i18n.t('Default to segmented retrieval for focused and relevant content extraction, this is recommended for most cases.')}
|
'Inject the entire content as context for comprehensive processing, this is recommended for complex queries.'
|
||||||
|
)
|
||||||
|
: $i18n.t(
|
||||||
|
'Default to segmented retrieval for focused and relevant content extraction, this is recommended for most cases.'
|
||||||
|
)}
|
||||||
>
|
>
|
||||||
<div class="flex items-center gap-1.5 text-xs">
|
<div class="flex items-center gap-1.5 text-xs">
|
||||||
{#if enableFullContent}
|
{#if enableFullContent}
|
||||||
|
Loading…
Reference in New Issue
Block a user