mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-08 14:53:58 +00:00
* 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>
22 lines
489 B
TypeScript
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;
|
|
};
|