fix: 调整大模型参数

This commit is contained in:
imeepos 2025-07-22 19:11:06 +08:00
parent 4fd6e8b0f4
commit c3cad2254c
2 changed files with 5 additions and 5 deletions

View File

@ -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()),
}
}
}

View File

@ -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然后参考检索结果输出符合逻辑的情景和模特穿搭描述,必须依据已知的数据返回可能的方案, 并且给出参照的依据;如果没有匹配的数据支持,返回空结果;",
};
/**