From 01afae17d37672d70088ba2baa90e53448e13004 Mon Sep 17 00:00:00 2001 From: sw3205933776 <3205933776@qq.com> Date: Tue, 30 Sep 2025 17:55:16 +0800 Subject: [PATCH 1/2] change model --- src/pages/Setting/Models.tsx | 34 +++++++++++++++++++++++----------- 1 file changed, 23 insertions(+), 11 deletions(-) diff --git a/src/pages/Setting/Models.tsx b/src/pages/Setting/Models.tsx index 2ad909abe..5e92769e7 100644 --- a/src/pages/Setting/Models.tsx +++ b/src/pages/Setting/Models.tsx @@ -213,8 +213,9 @@ export default function SettingModels() { if (res.is_tool_calls && res.is_valid) { console.log("success"); toast(t("setting.validate-success"), { - description: - t("setting.the-model-has-been-verified-to-support-function-calling-which-is-required-to-use-eigent"), + description: t( + "setting.the-model-has-been-verified-to-support-function-calling-which-is-required-to-use-eigent" + ), closeButton: true, }); } else { @@ -370,8 +371,9 @@ export default function SettingModels() { if (res.is_tool_calls && res.is_valid) { console.log("success"); toast(t("setting.validate-success"), { - description: - t("setting.the-model-has-been-verified-to-support-function-calling-which-is-required-to-use-eigent"), + description: t( + "setting.the-model-has-been-verified-to-support-function-calling-which-is-required-to-use-eigent" + ), closeButton: true, }); } else { @@ -474,7 +476,9 @@ export default function SettingModels() { if (!hasSearchKey) { // Show warning toast instead of blocking toast(t("setting.warning-google-search-not-configured"), { - description: t("setting.search-functionality-may-be-limited-without-google-api"), + description: t( + "setting.search-functionality-may-be-limited-without-google-api" + ), closeButton: true, }); } @@ -501,7 +505,9 @@ export default function SettingModels() { if (!hasSearchKey) { // Show warning toast instead of blocking toast(t("setting.warning-google-search-not-configured"), { - description: t("setting.search-functionality-may-be-limited-without-google-api"), + description: t( + "setting.search-functionality-may-be-limited-without-google-api" + ), closeButton: true, }); } @@ -683,8 +689,8 @@ export default function SettingModels() { GPT-5 GPT-5 mini GPT-5 nano - - Claude Sonnet 4 + + Claude Sonnet 4-5 Claude 3.5 Haiku @@ -760,7 +766,9 @@ export default function SettingModels() { { @@ -805,7 +813,9 @@ export default function SettingModels() {
{ @@ -833,7 +843,9 @@ export default function SettingModels() {
{ From c450860dfb740740a0520182fd7212f9d27cce07 Mon Sep 17 00:00:00 2001 From: Wendong-Fan Date: Tue, 30 Sep 2025 23:15:55 +0800 Subject: [PATCH 2/2] change model PR420 --- src/pages/Setting/Models.tsx | 6 ++---- src/store/authStore.ts | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/pages/Setting/Models.tsx b/src/pages/Setting/Models.tsx index 5e92769e7..4af799247 100644 --- a/src/pages/Setting/Models.tsx +++ b/src/pages/Setting/Models.tsx @@ -652,10 +652,8 @@ export default function SettingModels() { ? t("setting.gpt-4.1-mini") : cloud_model_type === "gpt-4.1" ? t("setting.gpt-4.1") - : cloud_model_type === "claude-opus-4-1-20250805" - ? t("setting.claude-opus-4.1") - : cloud_model_type === "claude-sonnet-4-20250514" - ? t("setting.claude-sonnet-4") + : cloud_model_type === "claude-sonnet-4-5" + ? t("setting.claude-sonnet-4-5") : cloud_model_type === "claude-3-5-haiku-20241022" ? t("setting.claude-3.5-haiku") : cloud_model_type === "gpt-5" diff --git a/src/store/authStore.ts b/src/store/authStore.ts index b0ee78376..63850e82e 100644 --- a/src/store/authStore.ts +++ b/src/store/authStore.ts @@ -4,7 +4,7 @@ import { persist } from 'zustand/middleware'; // type definition type InitState = 'permissions' | 'carousel' | 'done'; type ModelType = 'cloud' | 'local' | 'custom'; -type CloudModelType = 'gemini/gemini-2.5-pro' | 'gemini-2.5-flash' | 'gpt-4.1-mini' | 'gpt-4.1' | 'claude-opus-4-1-20250805' | 'claude-sonnet-4-20250514' | 'claude-3-5-haiku-20241022' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano'; +type CloudModelType = 'gemini/gemini-2.5-pro' | 'gemini-2.5-flash' | 'gpt-4.1-mini' | 'gpt-4.1' | 'claude-sonnet-4-5' | 'claude-3-5-haiku-20241022' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano'; // auth info interface interface AuthInfo {