refactor(openai): centralize provider defaults

This commit is contained in:
Vincent Koc
2026-03-21 08:39:50 -07:00
parent 931fc9989d
commit 2e8c8a7ae6
10 changed files with 22 additions and 10 deletions

View File

@@ -1,9 +1,10 @@
import type { OpenClawConfig } from "../config/config.js";
import { OPENAI_DEFAULT_MODEL } from "../providers/openai-defaults.js";
import { ensureModelAllowlistEntry } from "./provider-model-allowlist.js";
import { applyAgentDefaultPrimaryModel } from "./provider-model-primary.js";
export const GOOGLE_GEMINI_DEFAULT_MODEL = "google/gemini-3.1-pro-preview";
export const OPENAI_DEFAULT_MODEL = "openai/gpt-5.1-codex";
export { OPENAI_DEFAULT_MODEL } from "../providers/openai-defaults.js";
export const OPENCODE_GO_DEFAULT_MODEL_REF = "opencode-go/kimi-k2.5";
export const OPENCODE_ZEN_DEFAULT_MODEL = "opencode/claude-opus-4-6";