feat(cron): add payload.fallbacks for per-job model fallback override (#26120) (#26304)

Co-authored-by: yinghaosang <yinghaosang@users.noreply.github.com>
This commit is contained in:
yinghaosang
2026-03-01 22:11:03 +08:00
committed by GitHub
parent 8c98cf05b2
commit f902697bd5
4 changed files with 305 additions and 1 deletions

View File

@@ -63,6 +63,8 @@ export type CronPayload =
message: string;
/** Optional model override (provider/model or alias). */
model?: string;
/** Optional per-job fallback models; overrides agent/global fallbacks when defined. */
fallbacks?: string[];
thinking?: string;
timeoutSeconds?: number;
allowUnsafeExternalContent?: boolean;
@@ -78,6 +80,7 @@ export type CronPayloadPatch =
kind: "agentTurn";
message?: string;
model?: string;
fallbacks?: string[];
thinking?: string;
timeoutSeconds?: number;
allowUnsafeExternalContent?: boolean;