Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/gateway/src/models/models.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ describe("Models API", () => {
});

test("GET /v1/models should include proper output modalities for gemini-2.5-flash-image-preview", async () => {
const res = await app.request("/v1/models");
const res = await app.request("/v1/models?include_deactivated=true");
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@steebchen @smakosh Can you check this please if this change is OK?

The test is looking for gemini-2.5-flash-image-preview model and expects it to be defined. However, since this model now has deactivatedAt: 2026-01-15 (which is in the past - we're on 2026-02-04), the model is likely being filtered out by default. To fix it, need to add this filter include_deactivated

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This issue happened for gemini-2.5-flash-image-preview earlier

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah good yeah that's the correct fix

expect(res.status).toBe(200);

const json = await res.json();
Expand Down
2 changes: 1 addition & 1 deletion packages/models/src/models/anthropic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export const anthropicModels = [
tools: true,
webSearch: true,
webSearchPrice: 0.01, // $10 per 1000 searches
deprecatedAt: new Date("2026-01-21"),
deprecatedAt: new Date("2025-12-19"),
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this date is coming from their changelog

deactivatedAt: new Date("2026-02-19T17:00:00Z"),
},
],
Expand Down
12 changes: 12 additions & 0 deletions packages/models/src/models/google.ts
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,8 @@ export const googleModels = [
tools: false,
jsonOutput: true,
jsonOutputSchema: true,
deprecatedAt: new Date("2025-12-04"),
deactivatedAt: new Date("2026-01-15"),
},
{
test: "skip",
Expand All @@ -653,6 +655,8 @@ export const googleModels = [
tools: false,
jsonOutput: true,
jsonOutputSchema: true,
deprecatedAt: new Date("2025-12-04"),
deactivatedAt: new Date("2026-01-15"),
},
],
},
Expand Down Expand Up @@ -927,6 +931,8 @@ export const googleModels = [
tools: true,
jsonOutput: true,
jsonOutputSchema: true,
deprecatedAt: new Date("2026-01-22"),
deactivatedAt: new Date("2026-03-31"),
},
{
providerId: "google-vertex",
Expand All @@ -941,6 +947,8 @@ export const googleModels = [
tools: true,
jsonOutput: true,
jsonOutputSchema: true,
deprecatedAt: new Date("2026-01-22"),
deactivatedAt: new Date("2026-03-31"),
},
],
},
Expand All @@ -964,6 +972,8 @@ export const googleModels = [
tools: true,
jsonOutput: true,
jsonOutputSchema: true,
deprecatedAt: new Date("2026-01-22"),
deactivatedAt: new Date("2026-03-31"),
},
{
providerId: "google-vertex",
Expand All @@ -978,6 +988,8 @@ export const googleModels = [
tools: true,
jsonOutput: true,
jsonOutputSchema: true,
deprecatedAt: new Date("2026-01-22"),
deactivatedAt: new Date("2026-03-31"),
},
],
},
Expand Down
2 changes: 2 additions & 0 deletions packages/models/src/models/openai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ export const openaiModels = [
vision: false,
tools: true,
jsonOutput: true,
deprecatedAt: new Date("2026-01-09"),
deactivatedAt: new Date("2026-03-31"),
},
],
},
Expand Down
2 changes: 2 additions & 0 deletions packages/models/src/models/xai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ export const xaiModels = [
vision: false,
tools: true,
jsonOutput: true,
deprecatedAt: new Date("2026-01-30"),
deactivatedAt: new Date("2026-02-28"),
},
],
},
Expand Down
Loading