feat(agent): 云端创作助手 - 增加创作锚点、媒体准入与结构化分镜能力

This commit is contained in:
ddCat committed 2026-09-15 13:37:21 +08:00
1 parent 40aca20f4d
commit be9b22a697
22 files changed
+1686 -60

No files matched your search

+3 -3
View File
@@ -303,9 +303,9 @@ func providerPayloadErrorCategory(raw string) (string, bool) {
return "模型不存在或当前渠道未获得模型权限", true
// 推理/思考模式模型通常禁止强制指定工具调用:DeepSeek 思考模式返回
// "Thinking mode does not support this tool_choice",其他 OpenAI 兼容
// 供应商措辞类似。归为固定可行动原因,画布智能体据此把首步的
// tool_choice=required 降级为 auto 重试一次。排在通用参数类目之前,
// 避免这类稳定标识落回笼统的"请检查模型和参数"。
// 供应商措辞类似。归为固定可行动原因;显式思考模式会在出站前省略
// tool_choice,未声明但由上游隐式开启思考时再按兼容序列重试。排在
// 通用参数类目之前,避免稳定标识落回笼统的"请检查模型和参数"。
case (strings.Contains(normalized, "thinking") || strings.Contains(normalized, "reasoning")) && strings.Contains(normalized, "tool_choice"),
strings.Contains(normalized, "tool_choice") && (strings.Contains(normalized, "not support") || strings.Contains(normalized, "unsupported")):
return "当前模型为思考/推理模式,不支持强制工具调用(tool_choice=required),请改用自动工具选择或更换非思考模式模型", true