History

fix(server): keep Daybreak models out of legacy models (#7659)

Niklas Schmidt committed 2 months ago

Commit 4bdbd8c1 parent 1afe5542 files · +18 −6Browse files

Unified · Split

2 files
  1. apps/server/src/provider/Layers/CodexProvider.test.ts +11 −5
  2. apps/server/src/provider/Layers/CodexProvider.ts +7 −1
apps/server/src/provider/Layers/CodexProvider.test.ts+11−5
@@ -6,16 +6,22 @@ import { · 5 unmodified lines
66 mapCodexModelCapabilities,
77 } from "./CodexProvider.ts";
88
9−it("keeps only the GPT-5.6 Codex family out of legacy models", () => {
9+it("keeps current Codex models out of legacy models", () => {
1010 assert.deepStrictEqual(
11− ["gpt-5.6-luna", "gpt-5.6-terra", "gpt-5.6-sol", "gpt-5.4"].map((model) => [
12− model,
13− isLegacyCodexModel(model),
14− ]),
11+ [
12+ "gpt-5.6-luna",
13+ "gpt-5.6-terra",
14+ "gpt-5.6-sol",
15+ "gpt-daybreak-blue-latest",
16+ "gpt-daybreak-red-latest",
17+ "gpt-5.4",
18+ ].map((model) => [model, isLegacyCodexModel(model)]),
1519 [
1620 ["gpt-5.6-luna", false],
1721 ["gpt-5.6-terra", false],
1822 ["gpt-5.6-sol", false],
23+ ["gpt-daybreak-blue-latest", false],
24+ ["gpt-daybreak-red-latest", false],
1925 ["gpt-5.4", true],
2026 ],
2127 );
apps/server/src/provider/Layers/CodexProvider.ts+7−1
@@ -62,7 +62,13 @@ const REASONING_EFFORT_LABELS: Readonly<Record<string, string>> = { · 61 unmodified lines
6262 };
6363
6464 const DEFAULT_SERVICE_TIER_ID = "default";
65−const CURRENT_CODEX_MODELS = new Set(["gpt-5.6-luna", "gpt-5.6-terra", "gpt-5.6-sol"]);
65+const CURRENT_CODEX_MODELS = new Set([
66+ "gpt-5.6-luna",
67+ "gpt-5.6-terra",
68+ "gpt-5.6-sol",
69+ "gpt-daybreak-blue-latest",
70+ "gpt-daybreak-red-latest",
71+]);
6672
6773 export function isLegacyCodexModel(model: string): boolean {
6874 return !CURRENT_CODEX_MODELS.has(model);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t