Tests: trim redundant GPT-5.4 overlap coverage

This commit is contained in:
Vincent Koc
2026-03-06 00:19:37 -05:00
parent e16aa9ccf7
commit dfbde683ce
3 changed files with 0 additions and 20 deletions

View File

@@ -1,13 +0,0 @@
import { describe, expect, it } from "vitest";
import { isModernModelRef } from "./live-model-filter.js";
describe("isModernModelRef", () => {
it("accepts new openai gpt-5.4 refs", () => {
expect(isModernModelRef({ provider: "openai", id: "gpt-5.4" })).toBe(true);
expect(isModernModelRef({ provider: "openai", id: "gpt-5.4-pro" })).toBe(true);
});
it("keeps rejecting older openai refs outside the allowlist", () => {
expect(isModernModelRef({ provider: "openai", id: "gpt-4.1" })).toBe(false);
});
});

View File

@@ -46,8 +46,6 @@ export function isModernModelRef(ref: ModelRef): boolean {
}
if (provider === "openai") {
// Keep the broader prefix match for GPT-5.x families so live tests keep opting into
// fresh OpenAI minor variants before the forward-compat catalog learns each exact ID.
return matchesExactOrPrefix(id, OPENAI_MODELS);
}

View File

@@ -42,11 +42,6 @@ describe("normalizeThinkLevel", () => {
});
describe("listThinkingLevels", () => {
it("includes xhigh for openai gpt-5.4 refs", () => {
expect(listThinkingLevels("openai", "gpt-5.4")).toContain("xhigh");
expect(listThinkingLevels("openai", "gpt-5.4-pro")).toContain("xhigh");
});
it("includes xhigh for codex models", () => {
expect(listThinkingLevels(undefined, "gpt-5.2-codex")).toContain("xhigh");
expect(listThinkingLevels(undefined, "gpt-5.3-codex")).toContain("xhigh");