diff --git a/app/api/canvas/detail-plan/route.ts b/app/api/canvas/detail-plan/route.ts index b0fd21733..cfd3df884 100644 --- a/app/api/canvas/detail-plan/route.ts +++ b/app/api/canvas/detail-plan/route.ts @@ -1569,6 +1569,7 @@ function evaluatePlanQuality(params: { async function runDualDirectorPlanPreflight(params: { model: any; + isLocalMoonshot?: boolean; language: "zh" | "en"; brief: DetailBrief; coreFocus: DetailCoreFocusContext; @@ -1672,7 +1673,7 @@ async function runDualDirectorPlanPreflight(params: { params.language === "en" ? "You are both an art director and a marketing director for high-conversion e-commerce detail pages. Output JSON only." : "你同时扮演高转化电商详情页的平面设计总监与营销总监。仅输出JSON。", - temperature: 0.1, + temperature: params.isLocalMoonshot ? 1 : 0.1, maxTokens: 2000, }, DETAIL_PLAN_PREFLIGHT_TIMEOUT_MS); @@ -2010,6 +2011,7 @@ export async function POST(request: Request) { `输出格式:\n` + `{"summary":"简述","globalStyle":{"designLanguage":"一句话风格方向","typography":{"fontFamily":"字体家族","title":"主标题规范","subtitle":"副标题规范","body":"正文规范"},"layout":{"grid":"栅格","safeArea":"安全区","rhythm":"留白节奏"},"palette":"配色规范"},"screens":[{"index":1,"screenType":"B","objective":"本屏目标","title":"首屏示例:甩甩杆,自拍不手抖(6-20字)","subtitle":"一句副标题","copy":"正文文案","layoutNote":"排版说明","useModel":false,"modelReason":"是否需要人物及原因","bundleShowcase":false,"bundleReason":"是否为搭配展示页及原因","fabe":{"b":"利益","f":"特征","a":"优势","e":"证据"},"visualPrompt":"用于生图的完整提示词,必须包含790x1300与统一字体排版"}]}`, temperature: 0.25, + ...(localDetailAgentResolved ? { temperature: 1 } : {}), maxTokens: 1800, }); @@ -2119,6 +2121,7 @@ export async function POST(request: Request) { }); const preflight = await runDualDirectorPlanPreflight({ model, + isLocalMoonshot: Boolean(localDetailAgentResolved), language, brief, coreFocus, diff --git a/app/api/canvas/detail-review/route.ts b/app/api/canvas/detail-review/route.ts index 05135da3a..e28e32942 100644 --- a/app/api/canvas/detail-review/route.ts +++ b/app/api/canvas/detail-review/route.ts @@ -410,7 +410,7 @@ export async function POST(request: Request) { language === "en" ? "You are both an Art Director and a Marketing Director for high-conversion e-commerce detail pages. Evaluate with strict professional standards and output JSON only." : "你同时是高转化电商详情页的平面设计总监与营销总监。按严格专业标准评估,仅输出JSON。", - temperature: 0.1, + temperature: localDetailAgentResolved ? 1 : 0.1, maxTokens: 800, } as any); text = String(result?.text || "");