diff --git a/src/auto-reply/thinking.shared.ts b/src/auto-reply/thinking.shared.ts index cd86256801f..c788334064d 100644 --- a/src/auto-reply/thinking.shared.ts +++ b/src/auto-reply/thinking.shared.ts @@ -1,3 +1,5 @@ +import { matchesExactOrPrefix } from "../plugins/provider-model-helpers.js"; + export type ThinkLevel = "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "adaptive"; export type VerboseLevel = "off" | "on" | "full"; export type NoticeLevel = "off" | "on" | "full"; @@ -29,10 +31,6 @@ const OPENAI_CODEX_XHIGH_MODEL_IDS = [ ] as const; const GITHUB_COPILOT_XHIGH_MODEL_IDS = ["gpt-5.2", "gpt-5.2-codex"] as const; -function matchesExactOrPrefix(modelId: string, ids: readonly string[]): boolean { - return ids.some((candidate) => modelId === candidate || modelId.startsWith(`${candidate}-`)); -} - export function normalizeProviderId(provider?: string | null): string { if (!provider) { return "";