fix(codex): preserve qualified model ids in selection and generation (#9921)
This commit is contained in:
1 parent
cd64ad384e
commit
a92161a050
8 files changed
+128
-14
No files matched your search
@@ -225,6 +225,11 @@ export function isClaudeUltrathinkPrompt(text: string | null | undefined): boole
|
||||
return typeof text === "string" && /\bultrathink\b/i.test(text);
|
||||
}
|
||||
|
||||
/** Compare Codex model families without changing provider-owned dispatch identifiers. */
|
||||
export function codexModelFamily(slug: string): string {
|
||||
return slug.startsWith("openai.gpt-") ? slug.slice("openai.".length) : slug;
|
||||
}
|
||||
|
||||
export function normalizeModelSlug(
|
||||
model: string | null | undefined,
|
||||
provider: ProviderDriverKind = DEFAULT_PROVIDER_DRIVER_KIND,
|
||||
|
||||
Reference in new issue
Block a user