mirror of
https://github.com/open-webui/open-webui.git
synced 2026-12-02 09:47:47 -05:00
refac
This commit is contained in:
1 parent
f8a5186480
commit
43d7281f4e
5 files changed
+32
No files matched your search
@@ -65,6 +65,7 @@
|
||||
SKILL_CONTENT_MAX_CHARS: $i18n.t('settings.admin.general.skillContentMaxChars.label'),
|
||||
SKILL_PREVIEW_MAX_CHARS: $i18n.t('settings.admin.general.skillPreviewMaxChars.label'),
|
||||
VIEW_CHAT_MAX_CHARS: $i18n.t('settings.admin.general.viewChatMaxChars.label'),
|
||||
TOOL_OUTPUT_MAX_CHARS: $i18n.t('settings.admin.general.toolOutputMaxChars.label'),
|
||||
ENABLE_NOTES: $i18n.t('settings.admin.general.notes.label'),
|
||||
ENABLE_COMMENTS: $i18n.t('settings.admin.general.comments.label'),
|
||||
ENABLE_NOTIFICATIONS: $i18n.t('settings.admin.general.notifications.label'),
|
||||
@@ -124,6 +125,7 @@
|
||||
SKILL_CONTENT_MAX_CHARS: adminConfig.SKILL_CONTENT_MAX_CHARS ?? null,
|
||||
SKILL_PREVIEW_MAX_CHARS: adminConfig.SKILL_PREVIEW_MAX_CHARS ?? null,
|
||||
VIEW_CHAT_MAX_CHARS: adminConfig.VIEW_CHAT_MAX_CHARS ?? null,
|
||||
TOOL_OUTPUT_MAX_CHARS: adminConfig.TOOL_OUTPUT_MAX_CHARS ?? null,
|
||||
DEFAULT_INTERFACE_SETTINGS: defaultInterfaceSettings,
|
||||
I18N: cleaned
|
||||
});
|
||||
@@ -435,6 +437,21 @@
|
||||
bind:value={adminConfig.VIEW_CHAT_MAX_CHARS}
|
||||
/>
|
||||
</AdminSettingField>
|
||||
<AdminSettingField
|
||||
forId="tool-output-max-chars"
|
||||
label={$i18n.t('settings.admin.general.toolOutputMaxChars.label')}
|
||||
description={$i18n.t('settings.admin.general.toolOutputMaxChars.description')}
|
||||
>
|
||||
<input
|
||||
id="tool-output-max-chars"
|
||||
class={inputClass}
|
||||
type="number"
|
||||
min="1"
|
||||
step="1"
|
||||
placeholder={$i18n.t('No limit')}
|
||||
bind:value={adminConfig.TOOL_OUTPUT_MAX_CHARS}
|
||||
/>
|
||||
</AdminSettingField>
|
||||
<AdminSettingRow
|
||||
label={$i18n.t('settings.admin.general.notes.label')}
|
||||
description={$i18n.t('settings.admin.general.notes.description')}
|
||||
|
||||
@@ -3444,6 +3444,8 @@
|
||||
"settings.admin.general.skillPreviewMaxChars.description": "Characters shown when instructions exceed the read limit. Cannot exceed that limit. Leave empty to use the default.",
|
||||
"settings.admin.general.skillPreviewMaxChars.label": "Skill Preview Length",
|
||||
"settings.admin.general.title": "General",
|
||||
"settings.admin.general.toolOutputMaxChars.description": "Maximum characters of a tool result sent to the model. Longer results are cut off. Leave empty for no limit.",
|
||||
"settings.admin.general.toolOutputMaxChars.label": "Tool Output Limit",
|
||||
"settings.admin.general.translations.addTranslation.label": "Add translation",
|
||||
"settings.admin.general.translations.uiTranslations.label": "UI Translations",
|
||||
"settings.admin.general.userStatus.description": "Show user status information in the app.",
|
||||
|
||||
Reference in new issue
Block a user