mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 18:26:48 +00:00
refac
This commit is contained in:
parent
7bbeaec93b
commit
32b386e8d0
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
const i18n = getContext('i18n');
|
const i18n = getContext('i18n');
|
||||||
|
|
||||||
const helpText = {
|
const capabilityLabels = {
|
||||||
vision: $i18n.t('Model accepts image inputs'),
|
vision: $i18n.t('Model accepts image inputs'),
|
||||||
usage: $i18n.t(
|
usage: $i18n.t(
|
||||||
'Sends `stream_options: { include_usage: true }` in the request.\nSupported providers will return token usage information in the response when set.'
|
'Sends `stream_options: { include_usage: true }` in the request.\nSupported providers will return token usage information in the response when set.'
|
||||||
@ -26,7 +26,7 @@
|
|||||||
<div class=" self-center text-sm font-semibold">{$i18n.t('Capabilities')}</div>
|
<div class=" self-center text-sm font-semibold">{$i18n.t('Capabilities')}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex">
|
<div class="flex">
|
||||||
{#each Object.keys(helpText) as capability}
|
{#each Object.keys(capabilityLabels) as capability}
|
||||||
<div class=" flex items-center gap-2 mr-3">
|
<div class=" flex items-center gap-2 mr-3">
|
||||||
<Checkbox
|
<Checkbox
|
||||||
state={capabilities[capability] ? 'checked' : 'unchecked'}
|
state={capabilities[capability] ? 'checked' : 'unchecked'}
|
||||||
@ -36,7 +36,7 @@
|
|||||||
/>
|
/>
|
||||||
|
|
||||||
<div class=" py-0.5 text-sm capitalize">
|
<div class=" py-0.5 text-sm capitalize">
|
||||||
<Tooltip content={marked.parse(helpText[capability])}>
|
<Tooltip content={marked.parse(capabilityLabels[capability])}>
|
||||||
{$i18n.t(capability)}
|
{$i18n.t(capability)}
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user