mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-01 20:31:19 +00:00
Tests: trim redundant GPT-5.4 overlap coverage
This commit is contained in:
@@ -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);
|
||||
});
|
||||
});
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user