立项策划会话强制工具调用

- planning_session_v2 请求 toolChoice 由 Auto 改为 Required,消除模型跳过 plan_ask_question/plan_submit_gdd 而把 JSON 写进正文导致的 PLANNING_INVALID_OUTPUT 失败
This commit is contained in:
2026-09-07 03:41:58 +00:00
parent a371c60724
commit 8eeaa43081
@@ -817,7 +817,7 @@ fn build_provider_request_v2(
.with_max_output_tokens(16_384)
.with_request_timeout_ms(llm.request_timeout_ms)
.with_function_tools(planning_v2_function_tools())
.with_tool_choice(platform_llm::LlmToolChoice::Auto);
.with_tool_choice(platform_llm::LlmToolChoice::Required);
apply_game_creator_llm_reasoning_effort(request, llm)
}