From 447ff68d8240e1bdd77d93b0e471415fb73e48f0 Mon Sep 17 00:00:00 2001 From: hailin Date: Fri, 18 Apr 2025 23:49:31 +0800 Subject: [PATCH] . --- components/ui/chat-settings-form.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/components/ui/chat-settings-form.tsx b/components/ui/chat-settings-form.tsx index 838f6ba..d27b464 100644 --- a/components/ui/chat-settings-form.tsx +++ b/components/ui/chat-settings-form.tsx @@ -20,6 +20,8 @@ import { Slider } from "./slider" import { TextareaAutosize } from "./textarea-autosize" import { WithTooltip } from "./with-tooltip" +import { useTranslation } from 'react-i18next' + interface ChatSettingsFormProps { chatSettings: ChatSettings onChangeChatSettings: (value: ChatSettings) => void @@ -37,6 +39,8 @@ export const ChatSettingsForm: FC = ({ if (!profile) return null + const { t } = useTranslation() + return (
@@ -115,6 +119,8 @@ const AdvancedContent: FC = ({ findOpenRouterModel(chatSettings.model)?.maxContext || 4096 } + const { t } = useTranslation() + return (