Files
openclaw/src/agents/model-fallback.types.ts
Eldar Shlomi 7c97c6da9b fix(agents): use neutral billing copy for subscription auth (#93763)
* fix(agents): neutral billing-error copy for OAuth/subscription auth

Fixes #80877

AI-assisted (Claude Code).

* fix(agents): preserve subscription billing guidance

* test(agents): use active auth store in prompt failover

---------

Co-authored-by: Vincent Koc <25068+vincentkoc@users.noreply.github.com>
2026-06-17 07:55:32 +08:00

22 lines
489 B
TypeScript

/**
* Shared candidate and attempt types for model fallback execution.
*/
import type { FailoverReason } from "./embedded-agent-helpers/types.js";
// Shared model fallback record types used by selection, observation, and retry
// reporting.
export type ModelCandidate = {
provider: string;
model: string;
};
export type FallbackAttempt = {
provider: string;
model: string;
error: string;
reason?: FailoverReason;
authMode?: string;
status?: number;
code?: string;
};