fix(canvas): 媒体提示词 - 统一 Agent 更新与画布生成读取生成合同
This commit is contained in:
1 parent
d0b27d2871
commit
ed68608080
20 files changed
+174
-48
No files matched your search
@@ -68,10 +68,11 @@ func cloudAgentCreativeAnchorForCanvas(repo *repository.Repository, userID strin
|
||||
continue
|
||||
}
|
||||
meta, _ := node["metadata"].(map[string]any)
|
||||
prompt, _ := cloudAgentMediaPrompt(meta)
|
||||
item := cloudAgentReferenceAnchor{
|
||||
NodeID: stringValue(node["id"]), Type: descriptor.Type,
|
||||
Title: truncateRunes(stringValue(node["title"]), 300),
|
||||
Prompt: truncateRunes(firstNonEmpty(stringValue(meta["prompt"]), stringValue(meta["composerContent"])), 1000),
|
||||
Prompt: truncateRunes(prompt, 1000),
|
||||
VisualIdentity: "unknown", RequiresVisualInspection: true,
|
||||
}
|
||||
if tags, ok := meta["assetTags"].([]any); ok {
|
||||
|
||||
Reference in new issue
Block a user