From 1d23f3270f2cc6e015cff86964f366d898515560 Mon Sep 17 00:00:00 2001 From: hailin Date: Fri, 18 Apr 2025 23:46:21 +0800 Subject: [PATCH] . --- components/ui/chat-settings-form.tsx | 22 +++++++++++----------- public/locales/en/translation.json | 14 +++++++++++++- public/locales/ja/translation.json | 14 +++++++++++++- public/locales/zh/translation.json | 14 +++++++++++++- 4 files changed, 50 insertions(+), 14 deletions(-) diff --git a/components/ui/chat-settings-form.tsx b/components/ui/chat-settings-form.tsx index 60d6b51..838f6ba 100644 --- a/components/ui/chat-settings-form.tsx +++ b/components/ui/chat-settings-form.tsx @@ -40,7 +40,7 @@ export const ChatSettingsForm: FC = ({ return (
- + = ({
- + { onChangeChatSettings({ ...chatSettings, prompt }) }} @@ -119,7 +119,7 @@ const AdvancedContent: FC = ({
@@ -140,7 +140,7 @@ const AdvancedContent: FC = ({
@@ -175,14 +175,14 @@ const AdvancedContent: FC = ({ } /> - + {showTooltip && ( - {profile?.profile_context || "No profile context."} + {profile?.profile_context || t("chat.noProfileContext")}
} trigger={ @@ -203,7 +203,7 @@ const AdvancedContent: FC = ({ } /> - + {showTooltip && ( = ({
- + diff --git a/public/locales/en/translation.json b/public/locales/en/translation.json index b8a9679..1a1163f 100644 --- a/public/locales/en/translation.json +++ b/public/locales/en/translation.json @@ -37,7 +37,19 @@ "defaultChatTitle": "Chat", "quickSettingsLabel": "Quick Settings", "loadingAssistant": "Loading assistant...", - "noItemsFound": "No items found." + "noItemsFound": "No items found.", + "modelLabel": "Model", + "promptLabel": "Prompt", + "temperatureLabel": "Temperature", + "contextLengthLabel": "Context Length", + "includeProfileContextLabel": "Chats Include Profile Context", + "noProfileContext": "No profile context.", + "includeWorkspaceInstructionsLabel": "Chats Include Workspace Instructions", + "noWorkspaceInstructions": "No workspace instructions.", + "embeddingsProviderLabel": "Embeddings Provider", + "azureOpenAI": "Azure OpenAI", + "openAI": "OpenAI", + "local": "Local" }, "profile": { diff --git a/public/locales/ja/translation.json b/public/locales/ja/translation.json index 00a11c9..03694be 100644 --- a/public/locales/ja/translation.json +++ b/public/locales/ja/translation.json @@ -36,7 +36,19 @@ "defaultChatTitle": "会話", "quickSettingsLabel": "クイック設定", "loadingAssistant": "アシスタントを読み込み中...", - "noItemsFound": "アイテムが見つかりません" + "noItemsFound": "アイテムが見つかりません", + "modelLabel": "モデル", + "promptLabel": "プロンプト", + "temperatureLabel": "温度", + "contextLengthLabel": "コンテキスト長", + "includeProfileContextLabel": "チャットにプロフィールコンテキストを含める", + "noProfileContext": "プロフィールコンテキストはありません。", + "includeWorkspaceInstructionsLabel": "チャットにワークスペース指示を含める", + "noWorkspaceInstructions": "ワークスペース指示はありません。", + "embeddingsProviderLabel": "埋め込み提供者", + "azureOpenAI": "Azure OpenAI", + "openAI": "OpenAI", + "local": "ローカル" }, "profile": { diff --git a/public/locales/zh/translation.json b/public/locales/zh/translation.json index 61b69a6..daed5a9 100644 --- a/public/locales/zh/translation.json +++ b/public/locales/zh/translation.json @@ -36,7 +36,19 @@ "defaultChatTitle": "对话", "quickSettingsLabel": "快速设置", "loadingAssistant": "正在加载助手...", - "noItemsFound": "未找到任何项目" + "noItemsFound": "未找到任何项目", + "modelLabel": "模型", + "promptLabel": "提示词", + "temperatureLabel": "温度", + "contextLengthLabel": "上下文长度", + "includeProfileContextLabel": "聊天包含个人资料上下文", + "noProfileContext": "没有个人资料上下文。", + "includeWorkspaceInstructionsLabel": "聊天包含工作区指令", + "noWorkspaceInstructions": "没有工作区指令。", + "embeddingsProviderLabel": "嵌入提供者", + "azureOpenAI": "Azure OpenAI", + "openAI": "OpenAI", + "local": "本地" }, "profile": {