|
|
@@ -2002,6 +2002,35 @@ describe("ProviderTransform.variants", () => {
|
|
|
const result = ProviderTransform.variants(model)
|
|
|
expect(Object.keys(result)).toEqual(["low", "medium", "high", "xhigh"])
|
|
|
})
|
|
|
+
|
|
|
+ test("gpt-5.3-codex includes xhigh", () => {
|
|
|
+ const model = createMockModel({
|
|
|
+ id: "gpt-5.3-codex",
|
|
|
+ providerID: "github-copilot",
|
|
|
+ api: {
|
|
|
+ id: "gpt-5.3-codex",
|
|
|
+ url: "https://api.githubcopilot.com",
|
|
|
+ npm: "@ai-sdk/github-copilot",
|
|
|
+ },
|
|
|
+ })
|
|
|
+ const result = ProviderTransform.variants(model)
|
|
|
+ expect(Object.keys(result)).toEqual(["low", "medium", "high", "xhigh"])
|
|
|
+ })
|
|
|
+
|
|
|
+ test("gpt-5.4 includes xhigh", () => {
|
|
|
+ const model = createMockModel({
|
|
|
+ id: "gpt-5.4",
|
|
|
+ release_date: "2026-03-05",
|
|
|
+ providerID: "github-copilot",
|
|
|
+ api: {
|
|
|
+ id: "gpt-5.4",
|
|
|
+ url: "https://api.githubcopilot.com",
|
|
|
+ npm: "@ai-sdk/github-copilot",
|
|
|
+ },
|
|
|
+ })
|
|
|
+ const result = ProviderTransform.variants(model)
|
|
|
+ expect(Object.keys(result)).toEqual(["low", "medium", "high", "xhigh"])
|
|
|
+ })
|
|
|
})
|
|
|
|
|
|
describe("@ai-sdk/cerebras", () => {
|