明确联合结果按图片返回树

让提示与每张输入图一棵树的校验契约一致
This commit is contained in:
2026-09-05 13:07:27 +08:00
parent c4eed791a1
commit 3b5d7009f8
@@ -681,7 +681,7 @@ pub(crate) async fn recognition_and_binding_impl_with_provider(
});
parts.push(LlmMessageContentPart::InputImage { image_url });
}
parts.push(LlmMessageContentPart::InputText { text: "直接返回完整最终 UI 树;每个节点可包含 components,空数组表示无组件。不要输出 node_id。".to_string() });
parts.push(LlmMessageContentPart::InputText { text: "为每张输入图片各返回一棵 UI 树(trees 与输入图片一一对应);每个节点可包含 components,空数组表示无组件。不要输出 node_id。".to_string() });
let (llm, client) = if provider_identity.is_none() {
let llm = load_game_creator_app_config()?.llm;
let client = build_game_creator_llm_client_from_llm_config(&llm, "llm")