Files
Genarrative/server-rs/crates/api-server/src/llm_model_routing.rs
T
lhk229 13411eb595 背景色视觉决策改用 gpt-5-mini(Responses + low 推理档)
- 视觉模型 gpt-4o-mini → gpt-5-mini。
- gpt-5-mini 是推理模型:视觉决策走 Responses 协议并设 reasoning_effort=low,
  否则默认档会把 token 预算全烧在推理上、返回空答案;纯文本路径仍走 ChatCompletions。
- max_tokens 96 → 768,给 low 档推理(实测 320~384 token)留足余量。

已真机验证:/responses 端点网关可用,暖肤色主体正确选中冷色背景。

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-08 14:25:17 +00:00

7 lines
517 B
Rust

pub(crate) const RPG_STORY_LLM_MODEL: &str = "doubao-seed-character-251128";
pub(crate) const CREATION_TEMPLATE_LLM_MODEL: &str = "deepseek-v3-2-251201";
pub(crate) const PUZZLE_LEVEL_NAME_VISION_LLM_MODEL: &str = "gpt-4o-mini";
// 抠图背景色决策的视觉模型。gpt-5-mini 是推理模型,会先花若干 token 做推理,
// 故决策请求的 max_tokens 需留足推理开销(见 editor_screen_background_decision)。
pub(crate) const EDITOR_SCREEN_BACKGROUND_VISION_LLM_MODEL: &str = "gpt-5-mini";