From 32b386e8d051cea979ad328285935759c577bff6 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Fri, 16 May 2025 22:44:47 +0400 Subject: [PATCH] refac --- src/lib/components/workspace/Models/Capabilities.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/components/workspace/Models/Capabilities.svelte b/src/lib/components/workspace/Models/Capabilities.svelte index 3620ce0c0..56a6cf4d6 100644 --- a/src/lib/components/workspace/Models/Capabilities.svelte +++ b/src/lib/components/workspace/Models/Capabilities.svelte @@ -6,7 +6,7 @@ const i18n = getContext('i18n'); - const helpText = { + const capabilityLabels = { vision: $i18n.t('Model accepts image inputs'), usage: $i18n.t( '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 @@
{$i18n.t('Capabilities')}
- {#each Object.keys(helpText) as capability} + {#each Object.keys(capabilityLabels) as capability}
- + {$i18n.t(capability)}