opencode: abstract out haiku model name

This commit is contained in:
2026-01-21 15:21:28 -05:00
parent 681cbcb117
commit 3b5f4b8fa4

View File

@@ -6,17 +6,21 @@
... ...
}: }:
let let
# what model should be used in place of haiku?
# glm 4.7-flash is an example
haiku-model = "anthropic/claude-haiku-4-5";
ohMyOpencodeConfig = { ohMyOpencodeConfig = {
"$schema" = "$schema" =
"https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/master/assets/oh-my-opencode.schema.json"; "https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/master/assets/oh-my-opencode.schema.json";
agents = { agents = {
Sisyphus.model = "anthropic/claude-opus-4-5"; Sisyphus.model = "anthropic/claude-opus-4-5";
librarian.model = "anthropic/claude-haiku-4-5"; librarian.model = haiku-model;
explore.model = "anthropic/claude-haiku-4-5"; explore.model = haiku-model;
oracle.model = "openrouter/openai/gpt-5.2"; oracle.model = "openrouter/openai/gpt-5.2";
frontend-ui-ux-engineer.model = "openrouter/google/gemini-3-pro-preview"; frontend-ui-ux-engineer.model = "openrouter/google/gemini-3-pro-preview";
document-writer.model = "anthropic/claude-sonnet-4-5"; document-writer.model = "anthropic/claude-sonnet-4-5";
multimodal-looker.model = "anthropic/claude-haiku-4-5"; multimodal-looker.model = haiku-model;
}; };
}; };
in in