test: skip additional stale live probe routes

This commit is contained in:
Peter Steinberger
2026-04-23 16:09:35 +01:00
parent b7cc9d2d28
commit 0fd0a69399
2 changed files with 11 additions and 1 deletions

View File

@@ -88,6 +88,9 @@ describe("live model turn probes", () => {
it("skips known stale file probe routes", () => {
expect(shouldSkipLiveModelFileProbe({ provider: "opencode-go", id: "glm-5" })).toBe(true);
expect(shouldSkipLiveModelFileProbe({ provider: "google", id: "gemini-3-pro-preview" })).toBe(
true,
);
expect(shouldSkipLiveModelFileProbe({ provider: "opencode-go", id: "kimi-k2.5" })).toBe(false);
});
@@ -98,6 +101,7 @@ describe("live model turn probes", () => {
id: "accounts/fireworks/models/kimi-k2p6",
}),
).toBe(true);
expect(shouldSkipLiveModelImageProbe({ provider: "opencode-go", id: "kimi-k2.5" })).toBe(true);
expect(shouldSkipLiveModelImageProbe({ provider: "fireworks", id: "glm-5" })).toBe(false);
});

View File

@@ -9,10 +9,16 @@ const PROBE_PNG_BASE64 =
"iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAALUlEQVR4nO3OIQEAAAwCMPrnod8fAzMxv7S9pQgICAgICAgICAgICAgICKwDD+yWbLXSniMNAAAAAElFTkSuQmCC";
const KNOWN_EMPTY_EXTRA_PROBE_MODELS = new Set(["openrouter/amazon/nova-2-lite-v1"]);
const KNOWN_EMPTY_FILE_PROBE_MODELS = new Set(["opencode-go/glm-5", "opencode-go/glm-5.1"]);
const KNOWN_EMPTY_FILE_PROBE_MODELS = new Set([
"google/gemini-3-pro-preview",
"google/gemini-3.1-pro-preview-customtools",
"opencode-go/glm-5",
"opencode-go/glm-5.1",
]);
const KNOWN_EMPTY_IMAGE_PROBE_MODELS = new Set([
"fireworks/accounts/fireworks/models/kimi-k2p6",
"fireworks/accounts/fireworks/routers/kimi-k2p5-turbo",
"opencode-go/kimi-k2.5",
"opencode-go/kimi-k2.6",
]);