From c7208f06809ce18263d7cbb388d49fd2398d53e7 Mon Sep 17 00:00:00 2001 From: hailin Date: Fri, 18 Apr 2025 23:52:34 +0800 Subject: [PATCH] . --- components/ui/chat-settings-form.tsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/components/ui/chat-settings-form.tsx b/components/ui/chat-settings-form.tsx index d27b464..1aeb331 100644 --- a/components/ui/chat-settings-form.tsx +++ b/components/ui/chat-settings-form.tsx @@ -35,12 +35,13 @@ export const ChatSettingsForm: FC = ({ useAdvancedDropdown = true, showTooltip = true }) => { + + const { t } = useTranslation() + const { profile, models } = useContext(ChatbotUIContext) if (!profile) return null - const { t } = useTranslation() - return (
@@ -101,6 +102,9 @@ const AdvancedContent: FC = ({ onChangeChatSettings, showTooltip }) => { + + const { t } = useTranslation() + const { profile, selectedWorkspace, availableOpenRouterModels, models } = useContext(ChatbotUIContext) @@ -119,8 +123,6 @@ const AdvancedContent: FC = ({ findOpenRouterModel(chatSettings.model)?.maxContext || 4096 } - const { t } = useTranslation() - return (