Skip to content

Commit 9cf74e0

Browse files
fix: Codex's live model names ("GPT 6.0 Astra") shorten too
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 7c223ec commit 9cf74e0

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎packages/client-runtime/src/providerClients.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const providerClients = makeProviderClientRegistry([
1919
{
2020
driverKind: ProviderDriverKind.make("codex"),
2121
label: "Codex",
22-
modelFamilies: ["GPT-"],
22+
modelFamilies: ["GPT-", "GPT "],
2323
acpRegistryAgentIds: ["codex-acp"],
2424
settingsSchema: CodexSettings,
2525
},

‎packages/provider-core/src/modelShortName.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ describe("modelShortName", () => {
66
it.each([
77
["Claude Opus 5.5", ["Claude "], "Opus 5.5"],
88
["GPT-6.1-Sol", ["GPT-"], "6.1 Sol"],
9+
["GPT 6.0 Astra", ["GPT-", "GPT "], "6.0 Astra"],
910
["Grok 4 Pro", [], undefined],
1011
["Claude Opus 5.5", [], "Opus 5.5"],
1112
["NVIDIA: Nemotron 3 Super", [], "Nemotron 3 Super"],

‎packages/provider-core/src/modelShortName.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const FAMILY_PREFIXES = ["Claude ", "GPT-", "Gemini ", "Muse ", "Grok "] as const;
1+
const FAMILY_PREFIXES = ["Claude ", "GPT-", "GPT ", "Gemini ", "Muse ", "Grok "] as const;
22

33
// Words that describe a variant within a family rather than name a model. Off the
44
// family's native provider there is no icon saying which family "4 Pro" belongs to.

0 commit comments

Comments
 (0)