mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-28 17:43:05 +00:00
16 lines
384 B
TypeScript
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;
|
|
}
|