mirror of
https://github.com/openclaw/openclaw.git
synced 2026-10-03 17:53:39 +00:00
* refactor(providers): deslop model provider plugins * refactor(providers): finish validation cleanup * fix(openai): preserve cold provider catalog imports Keep promise construction local on cold catalog paths to avoid loading logging redaction through extension-shared. Withdraw the unrelated ElevenLabs header-only edit.
18 lines
544 B
TypeScript
18 lines
544 B
TypeScript
import { withAgentModelAliases, type OpenClawConfig } from "openclaw/plugin-sdk/provider-onboard";
|
|
|
|
export const OPENCODE_ZEN_DEFAULT_MODEL_REF = "opencode/claude-opus-5";
|
|
|
|
export function applyOpencodeZenProviderConfig(cfg: OpenClawConfig): OpenClawConfig {
|
|
return {
|
|
...cfg,
|
|
agents: {
|
|
...cfg.agents,
|
|
defaults: {
|
|
...cfg.agents?.defaults,
|
|
models: withAgentModelAliases(cfg.agents?.defaults?.models, [
|
|
{ modelRef: OPENCODE_ZEN_DEFAULT_MODEL_REF, alias: "Opus" },
|
|
]),
|
|
},
|
|
},
|
|
};
|
|
}
|