fix(server): keep Daybreak models out of legacy models (#7659)
This commit is contained in:
1 parent
1afe5545b7
commit
4bdbd8ce15
2 files changed
+18
-6
No files matched your search
@@ -6,16 +6,22 @@ import {
|
||||
mapCodexModelCapabilities,
|
||||
} from "./CodexProvider.ts";
|
||||
|
||||
it("keeps only the GPT-5.6 Codex family out of legacy models", () => {
|
||||
it("keeps current Codex models out of legacy models", () => {
|
||||
assert.deepStrictEqual(
|
||||
["gpt-5.6-luna", "gpt-5.6-terra", "gpt-5.6-sol", "gpt-5.4"].map((model) => [
|
||||
model,
|
||||
isLegacyCodexModel(model),
|
||||
]),
|
||||
[
|
||||
"gpt-5.6-luna",
|
||||
"gpt-5.6-terra",
|
||||
"gpt-5.6-sol",
|
||||
"gpt-daybreak-blue-latest",
|
||||
"gpt-daybreak-red-latest",
|
||||
"gpt-5.4",
|
||||
].map((model) => [model, isLegacyCodexModel(model)]),
|
||||
[
|
||||
["gpt-5.6-luna", false],
|
||||
["gpt-5.6-terra", false],
|
||||
["gpt-5.6-sol", false],
|
||||
["gpt-daybreak-blue-latest", false],
|
||||
["gpt-daybreak-red-latest", false],
|
||||
["gpt-5.4", true],
|
||||
],
|
||||
);
|
||||
|
||||
@@ -62,7 +62,13 @@ const REASONING_EFFORT_LABELS: Readonly<Record<string, string>> = {
|
||||
};
|
||||
|
||||
const DEFAULT_SERVICE_TIER_ID = "default";
|
||||
const CURRENT_CODEX_MODELS = new Set(["gpt-5.6-luna", "gpt-5.6-terra", "gpt-5.6-sol"]);
|
||||
const CURRENT_CODEX_MODELS = new Set([
|
||||
"gpt-5.6-luna",
|
||||
"gpt-5.6-terra",
|
||||
"gpt-5.6-sol",
|
||||
"gpt-daybreak-blue-latest",
|
||||
"gpt-daybreak-red-latest",
|
||||
]);
|
||||
|
||||
export function isLegacyCodexModel(model: string): boolean {
|
||||
return !CURRENT_CODEX_MODELS.has(model);
|
||||
|
||||
Reference in new issue
Block a user