test: skip remaining stale live probe routes

This commit is contained in:
Peter Steinberger
2026-04-23 16:57:30 +01:00
parent bc6cefd2ac
commit d913fd57a2
2 changed files with 9 additions and 1 deletions

View File

@@ -98,7 +98,8 @@ describe("live model turn probes", () => {
expect(shouldSkipLiveModelFileProbe({ provider: "opencode-go", id: "minimax-m2.5" })).toBe(
true,
);
expect(shouldSkipLiveModelFileProbe({ provider: "opencode-go", id: "kimi-k2.5" })).toBe(false);
expect(shouldSkipLiveModelFileProbe({ provider: "opencode-go", id: "kimi-k2.5" })).toBe(true);
expect(shouldSkipLiveModelFileProbe({ provider: "fireworks", id: "glm-5" })).toBe(false);
});
it("skips known stale image probe routes", () => {
@@ -115,6 +116,9 @@ describe("live model turn probes", () => {
id: "gemini-3.1-pro-preview-customtools",
}),
).toBe(true);
expect(
shouldSkipLiveModelImageProbe({ provider: "openrouter", id: "amazon/nova-pro-v1" }),
).toBe(true);
expect(shouldSkipLiveModelImageProbe({ provider: "fireworks", id: "glm-5" })).toBe(false);
});

View File

@@ -24,6 +24,7 @@ const KNOWN_EMPTY_IMAGE_PROBE_MODELS = new Set([
"google/gemini-3.1-pro-preview-customtools",
"opencode-go/kimi-k2.5",
"opencode-go/kimi-k2.6",
"openrouter/amazon/nova-pro-v1",
]);
function modelKey(model: Pick<Model<Api>, "id" | "provider">): string {
@@ -60,6 +61,9 @@ export function shouldSkipLiveModelExtraProbes(
}
export function shouldSkipLiveModelFileProbe(model: Pick<Model<Api>, "id" | "provider">): boolean {
if (model.provider === "opencode-go") {
return true;
}
return KNOWN_EMPTY_FILE_PROBE_MODELS.has(modelKey(model));
}