mirror of
https://github.com/open-webui/open-webui
synced 2025-06-23 02:16:52 +00:00
chore: add changes based on 'npm run format'
This commit is contained in:
parent
a21519f8f2
commit
9821ee5f99
@ -46,7 +46,9 @@
|
|||||||
>
|
>
|
||||||
<Tooltip
|
<Tooltip
|
||||||
content={marked.parse(
|
content={marked.parse(
|
||||||
sanitizeResponseContent(models[selectedModelIdx]?.info?.meta?.description ?? '').replaceAll('\n', '<br>')
|
sanitizeResponseContent(
|
||||||
|
models[selectedModelIdx]?.info?.meta?.description ?? ''
|
||||||
|
).replaceAll('\n', '<br>')
|
||||||
)}
|
)}
|
||||||
placement="right"
|
placement="right"
|
||||||
>
|
>
|
||||||
@ -96,7 +98,9 @@
|
|||||||
class="mt-0.5 text-base font-normal text-gray-500 dark:text-gray-400 line-clamp-3 markdown"
|
class="mt-0.5 text-base font-normal text-gray-500 dark:text-gray-400 line-clamp-3 markdown"
|
||||||
>
|
>
|
||||||
{@html marked.parse(
|
{@html marked.parse(
|
||||||
sanitizeResponseContent(models[selectedModelIdx]?.info?.meta?.description).replaceAll('\n', '<br>')
|
sanitizeResponseContent(
|
||||||
|
models[selectedModelIdx]?.info?.meta?.description
|
||||||
|
).replaceAll('\n', '<br>')
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
{#if models[selectedModelIdx]?.info?.meta?.user}
|
{#if models[selectedModelIdx]?.info?.meta?.user}
|
||||||
|
@ -274,11 +274,10 @@
|
|||||||
<div class=" my-2.5 text-sm font-medium">{$i18n.t('System Prompt')}</div>
|
<div class=" my-2.5 text-sm font-medium">{$i18n.t('System Prompt')}</div>
|
||||||
<Textarea
|
<Textarea
|
||||||
bind:value={system}
|
bind:value={system}
|
||||||
className={
|
className={'w-full text-sm outline-hidden resize-vertical' +
|
||||||
"w-full text-sm outline-hidden resize-vertical" + ($settings.highContrastMode
|
($settings.highContrastMode
|
||||||
? " p-2.5 border-2 border-gray-300 dark:border-gray-700 rounded-lg bg-gray-50 dark:bg-gray-850 text-gray-900 dark:text-gray-100 focus:ring-1 focus:ring-blue-500 focus:border-blue-500 overflow-y-hidden"
|
? ' p-2.5 border-2 border-gray-300 dark:border-gray-700 rounded-lg bg-gray-50 dark:bg-gray-850 text-gray-900 dark:text-gray-100 focus:ring-1 focus:ring-blue-500 focus:border-blue-500 overflow-y-hidden'
|
||||||
: " bg-white dark:text-gray-300 dark:bg-gray-900")
|
: ' bg-white dark:text-gray-300 dark:bg-gray-900')}
|
||||||
}
|
|
||||||
rows="4"
|
rows="4"
|
||||||
placeholder={$i18n.t('Enter system prompt here')}
|
placeholder={$i18n.t('Enter system prompt here')}
|
||||||
/>
|
/>
|
||||||
|
Loading…
Reference in New Issue
Block a user