From f06e1855cdd5860b9a928b1cfc6c93c477c51b4e Mon Sep 17 00:00:00 2001 From: hailin Date: Sun, 20 Apr 2025 16:50:10 +0800 Subject: [PATCH] . --- components/models/model-select.tsx | 8 +++++--- public/locales/en/translation.json | 9 +++++++-- public/locales/ja/translation.json | 7 ++++++- public/locales/zh/translation.json | 9 +++++++-- 4 files changed, 25 insertions(+), 8 deletions(-) diff --git a/components/models/model-select.tsx b/components/models/model-select.tsx index d2a93d8..1b7d271 100644 --- a/components/models/model-select.tsx +++ b/components/models/model-select.tsx @@ -150,7 +150,7 @@ export const ModelSelect: FC = ({ setSearch(e.target.value)} /> @@ -174,8 +174,10 @@ export const ModelSelect: FC = ({
{provider === "openai" && profile.use_azure_openai - ? "AZURE OPENAI" - : provider.toLocaleUpperCase()} + ? "AZURE OPENAI" + : provider === "custom" + ? t("modelProvider.custom") + : provider.toUpperCase()}
diff --git a/public/locales/en/translation.json b/public/locales/en/translation.json index d0e6121..997ec62 100644 --- a/public/locales/en/translation.json +++ b/public/locales/en/translation.json @@ -54,7 +54,8 @@ "local": "Local", "selectModel": "Select a model", "hosted": "Hosted", - "advancedSettings": "Advanced Settings" + "advancedSettings": "Advanced Settings", + "searchModelsPlaceholder": "Search models..." }, "profile": { @@ -213,6 +214,10 @@ "assistants": "assistants", "tools": "tools", "models": "models" - } + }, + + "modelProvider": { + "custom": "CUSTOM" +} } diff --git a/public/locales/ja/translation.json b/public/locales/ja/translation.json index adc8cc6..af68d86 100644 --- a/public/locales/ja/translation.json +++ b/public/locales/ja/translation.json @@ -53,7 +53,8 @@ "local": "ローカル", "selectModel": "モデルを選択", "hosted": "ホステッド", - "advancedSettings": "高度な設定" + "advancedSettings": "高度な設定", + "searchModelsPlaceholder": "モデルを検索..." }, "profile": { @@ -213,6 +214,10 @@ "assistants": "アシスタント", "tools": "ツール", "models": "モデル" + }, + + "modelProvider": { + "custom": "カスタム" } } diff --git a/public/locales/zh/translation.json b/public/locales/zh/translation.json index 5a2feb2..39ed5db 100644 --- a/public/locales/zh/translation.json +++ b/public/locales/zh/translation.json @@ -53,7 +53,8 @@ "local": "本地", "selectModel": "选择一个模型", "hosted": "托管的", - "advancedSettings": "高级设置" + "advancedSettings": "高级设置", + "searchModelsPlaceholder": "搜索模型..." }, "profile": { @@ -212,6 +213,10 @@ "assistants": "助手", "tools": "工具", "models": "模型" - } + }, + + "modelProvider": { + "custom": "自定义" +} }