From c3cad2254cf566d594d44296045faa047593ecde Mon Sep 17 00:00:00 2001 From: imeepos Date: Tue, 22 Jul 2025 19:11:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B0=83=E6=95=B4=E5=A4=A7=E6=A8=A1?= =?UTF-8?q?=E5=9E=8B=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src-tauri/src/infrastructure/gemini_service.rs | 8 ++++---- apps/desktop/src/types/ragGrounding.ts | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/desktop/src-tauri/src/infrastructure/gemini_service.rs b/apps/desktop/src-tauri/src/infrastructure/gemini_service.rs index 9b98487..a5e2ead 100644 --- a/apps/desktop/src-tauri/src/infrastructure/gemini_service.rs +++ b/apps/desktop/src-tauri/src/infrastructure/gemini_service.rs @@ -44,8 +44,8 @@ impl Default for GeminiConfig { model_name: "gemini-2.5-flash".to_string(), max_retries: 3, retry_delay: 2, - temperature: 0.1, - max_tokens: 1024 * 8, + temperature: 0.7, + max_tokens: 1000 * 8 * 8, cloudflare_project_id: "67720b647ff2b55cf37ba3ef9e677083".to_string(), cloudflare_gateway_id: "bowong-dev".to_string(), google_project_id: "gen-lang-client-0413414134".to_string(), @@ -175,8 +175,8 @@ impl Default for RagGroundingConfig { data_store_id: "searchable-model-images_1752827560253".to_string(), // 使用存在的数据存储 model_id: "gemini-2.5-flash".to_string(), temperature: 1.0, - max_output_tokens: 1000 * 100, - system_prompt: Some("你是一个短视频情景穿搭分析专家, 根据用户预想的情景检索RAG,然后输出符合逻辑的情景和模特穿搭描述,必须依据已知的数据返回可能的方案, 并且给出参照的依据;如果没有匹配的数据支持,返回空结果;".to_string()), + max_output_tokens: 60000, + system_prompt: Some("你是一个短视频情景穿搭分析专家, 根据用户的输入检索RAG,然后参考检索结果,输出符合逻辑的情景和模特穿搭描述,必须依据已知的数据返回可能的方案, 并且给出参照的依据;如果没有匹配的数据支持,返回空结果;".to_string()), } } } diff --git a/apps/desktop/src/types/ragGrounding.ts b/apps/desktop/src/types/ragGrounding.ts index 31673c3..a76646a 100644 --- a/apps/desktop/src/types/ragGrounding.ts +++ b/apps/desktop/src/types/ragGrounding.ts @@ -118,7 +118,7 @@ export const DEFAULT_RAG_GROUNDING_CONFIG: RagGroundingConfig = { model_id: "gemini-2.5-flash", temperature: 1.0, max_output_tokens: 8192, - system_prompt: "你是一个短视频情景穿搭分析专家, 根据用户预想的情景输出符合逻辑的情景和模特穿搭描述,必须依据已知的数据返回可能的方案, 并且给出参照的依据;如果没有匹配的数据支持,返回空结果;", + system_prompt: "你是一个短视频情景穿搭分析专家, 根据用户的输入检索RAG,然后参考检索结果,输出符合逻辑的情景和模特穿搭描述,必须依据已知的数据返回可能的方案, 并且给出参照的依据;如果没有匹配的数据支持,返回空结果;", }; /**