Files
openclaw/src/agents/test-helpers/model-fallback-config-fixture.ts
2026-02-22 20:04:51 +00:00

16 lines
384 B
TypeScript

import type { OpenClawConfig } from "../../config/config.js";
export function makeModelFallbackCfg(overrides: Partial<OpenClawConfig> = {}): OpenClawConfig {
return {
agents: {
defaults: {
model: {
primary: "openai/gpt-4.1-mini",
fallbacks: ["anthropic/claude-haiku-3-5"],
},
},
},
...overrides,
} as OpenClawConfig;
}