From a49dd6101ed9a3467e9f6a635da435d1d5ac470f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=89=A1=E4=B8=B9=E5=87=A4=E5=87=B0?= <87239270+sunrise0o0@users.noreply.github.com> Date: Wed, 12 Feb 2025 08:25:14 +0800 Subject: [PATCH 1/4] Update zh-tw.json (#1433) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 助手菜单名称显示不全 --- src/renderer/src/i18n/locales/zh-tw.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/src/i18n/locales/zh-tw.json b/src/renderer/src/i18n/locales/zh-tw.json index c7a96174..30ebc61f 100644 --- a/src/renderer/src/i18n/locales/zh-tw.json +++ b/src/renderer/src/i18n/locales/zh-tw.json @@ -32,7 +32,7 @@ "title": "智能體" }, "assistants": { - "abbr": "助", + "abbr": "助手", "clear.content": "清空話題會刪除助手下所有主題和文件,確定要繼續嗎?", "clear.title": "清空話題", "copy.title": "複製助手", From e99f34893ef934082b6dbcc3116628e6f71cad13 Mon Sep 17 00:00:00 2001 From: airwish Date: Tue, 11 Feb 2025 16:16:47 +0000 Subject: [PATCH 2/4] feat: expanded web search models --- src/renderer/src/config/models.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/renderer/src/config/models.ts b/src/renderer/src/config/models.ts index 2f8f9c00..5a0191b7 100644 --- a/src/renderer/src/config/models.ts +++ b/src/renderer/src/config/models.ts @@ -1191,7 +1191,12 @@ export function isWebSearchModel(model: Model): boolean { } if (provider.id === 'aihubmix') { - return model?.id === 'gemini-2.0-flash-exp-search' + const models = [ + 'gemini-2.0-flash-search', + 'gemini-2.0-flash-exp-search', + 'gemini-2.0-pro-exp-02-05-search' + ] + return models.includes(model?.id) } if (provider.id === 'zhipu') { From bf1fa5b767782f262a5f5ebb659d68f3a1c4389d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=89=A1=E4=B8=B9=E5=87=A4=E5=87=B0?= <87239270+sunrise0o0@users.noreply.github.com> Date: Tue, 11 Feb 2025 22:04:26 +0800 Subject: [PATCH 3/4] Update zh-tw.json MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 更正繁体中文当中关于Temperature的描述 --- src/renderer/src/i18n/locales/zh-tw.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/src/i18n/locales/zh-tw.json b/src/renderer/src/i18n/locales/zh-tw.json index 30ebc61f..7e299cae 100644 --- a/src/renderer/src/i18n/locales/zh-tw.json +++ b/src/renderer/src/i18n/locales/zh-tw.json @@ -107,7 +107,7 @@ "settings.set_as_default": "設為預設助手", "settings.show_line_numbers": "代码顯示行號", "settings.temperature": "溫度", - "settings.temperature.tip": "較低的值使模型更具創造性和不可預測性,較高的值則使其更具確定性和精確性。", + "settings.temperature.tip": "模型產生文字的隨機程度。數值越高,回應內容越具多樣性、創意性及隨機性;設定為 0 則會依據事實回答。一般聊天建議設定為 0.7", "settings.top_p": "Top-P", "settings.top_p.tip": "模型生成文本的隨機程度。值越小,AI 生成的內容越單調,也越容易理解;值越大,AI 回覆的詞彙範圍越大,越多樣化", "suggestions.title": "建議的問題", From ceb97e80ff385926ea1c23ae4f4b571b88e0b6d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=89=A1=E4=B8=B9=E5=87=A4=E5=87=B0?= <87239270+sunrise0o0@users.noreply.github.com> Date: Tue, 11 Feb 2025 21:52:24 +0800 Subject: [PATCH 4/4] Update embedings.ts --- src/renderer/src/config/embedings.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/renderer/src/config/embedings.ts b/src/renderer/src/config/embedings.ts index fcc7d3b8..c1bb22dd 100644 --- a/src/renderer/src/config/embedings.ts +++ b/src/renderer/src/config/embedings.ts @@ -222,6 +222,10 @@ export const EMBEDDING_MODELS = [ { id: 'embed-multilingual-v2.0', max_context: 256 + }, + { + id: 'text-embedding-004', + max_context: 2048 } ]