mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-13 19:10:39 +00:00
20 lines
588 B
TypeScript
20 lines
588 B
TypeScript
import type { OpenClawConfig } from "../config/config.js";
|
|
import { applyAgentDefaultPrimaryModel } from "./model-default.js";
|
|
|
|
export const OPENCODE_ZEN_DEFAULT_MODEL = "opencode/claude-opus-4-6";
|
|
const LEGACY_OPENCODE_ZEN_DEFAULT_MODELS = new Set([
|
|
"opencode/claude-opus-4-5",
|
|
"opencode-zen/claude-opus-4-5",
|
|
]);
|
|
|
|
export function applyOpencodeZenModelDefault(cfg: OpenClawConfig): {
|
|
next: OpenClawConfig;
|
|
changed: boolean;
|
|
} {
|
|
return applyAgentDefaultPrimaryModel({
|
|
cfg,
|
|
model: OPENCODE_ZEN_DEFAULT_MODEL,
|
|
legacyModels: LEGACY_OPENCODE_ZEN_DEFAULT_MODELS,
|
|
});
|
|
}
|