From 215c8f23154af5d5d0dd675fe382e0646e9867d8 Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Mon, 27 Apr 2026 21:15:31 +0900 Subject: [PATCH] feat(agents): add isClaudeOpus47Model type guard Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus --- src/agents/types.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/agents/types.ts b/src/agents/types.ts index 8afe7453d..f1a485628 100644 --- a/src/agents/types.ts +++ b/src/agents/types.ts @@ -96,6 +96,11 @@ export function isGpt5_3CodexModel(model: string): boolean { return modelName.includes("gpt-5.3-codex") || modelName.includes("gpt-5-3-codex"); } +export function isClaudeOpus47Model(model: string): boolean { + const modelName = extractModelName(model).toLowerCase().replaceAll(".", "-"); + return modelName.includes("claude-opus-4-7"); +} + const GEMINI_PROVIDERS = ["google/", "google-vertex/"]; export function isMiniMaxModel(model: string): boolean {