mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 08:20:43 +00:00
test: skip remaining stale live probe routes
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user