Skip to content

Commit 45333ae

Browse files
t3dotggclaude
andcommitted
fix(codex): shorter Ultrafast description that fits on one line
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
1 parent 60356f5 commit 45333ae

2 files changed

Lines changed: 24 additions & 6 deletions

File tree

‎apps/server/src/provider/Layers/CodexProvider.test.ts‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@ it("uses standard routing when the catalog has no default service tier", () => {
8181
name: "Fast",
8282
description: "1.5x speed, increased usage",
8383
},
84+
{
85+
id: "ultrafast",
86+
name: "Ultrafast",
87+
description: "The fastest available responses for latency-sensitive work.",
88+
},
8489
],
8590
supportedReasoningEfforts: [],
8691
});
@@ -97,6 +102,11 @@ it("uses standard routing when the catalog has no default service tier", () => {
97102
label: "Fast",
98103
description: "1.5x speed, increased usage",
99104
},
105+
{
106+
id: "ultrafast",
107+
label: "Ultrafast",
108+
description: "Even faster, more expensive",
109+
},
100110
],
101111
currentValue: "default",
102112
},

‎apps/server/src/provider/Layers/CodexProvider.ts‎

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,11 @@ const REASONING_EFFORT_LABELS: Readonly<Record<string, string>> = {
9090

9191
const DEFAULT_SERVICE_TIER_ID = "default";
9292

93+
/** Shorter copy for tiers whose catalog description wraps in the traits menu. */
94+
const SERVICE_TIER_DESCRIPTIONS: Readonly<Record<string, string>> = {
95+
ultrafast: "Even faster, more expensive",
96+
};
97+
9398
function reasoningEffortLabel(reasoningEffort: string): string {
9499
return REASONING_EFFORT_LABELS[reasoningEffort] ?? reasoningEffort;
95100
}
@@ -197,12 +202,15 @@ export function mapCodexModelCapabilities(
197202
label: "Standard",
198203
...(defaultServiceTier === DEFAULT_SERVICE_TIER_ID ? { isDefault: true } : {}),
199204
},
200-
...serviceTiers.map((tier) => ({
201-
id: tier.id,
202-
label: tier.name,
203-
...(tier.description ? { description: tier.description } : {}),
204-
...(defaultServiceTier === tier.id ? { isDefault: true } : {}),
205-
})),
205+
...serviceTiers.map((tier) => {
206+
const description = SERVICE_TIER_DESCRIPTIONS[tier.id] ?? tier.description;
207+
return {
208+
id: tier.id,
209+
label: tier.name,
210+
...(description ? { description } : {}),
211+
...(defaultServiceTier === tier.id ? { isDefault: true } : {}),
212+
};
213+
}),
206214
],
207215
currentValue: defaultServiceTier,
208216
});

0 commit comments

Comments
 (0)