明确联合结果按图片返回树
让提示与每张输入图一棵树的校验契约一致
This commit is contained in:
+1
-1
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user