mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 08:00:42 +00:00
test: skip stale openrouter live routes
This commit is contained in:
@@ -18,6 +18,11 @@ describe("live model error helpers", () => {
|
||||
expect(
|
||||
isModelNotFoundErrorMessage("404 No endpoints found for deepseek/deepseek-r1:free."),
|
||||
).toBe(true);
|
||||
expect(
|
||||
isModelNotFoundErrorMessage(
|
||||
'400 Provider returned error {"code":400,"msg":"model[Alibaba-NLP/Tongyi-DeepResearch-30B-A3B] router not found"}',
|
||||
),
|
||||
).toBe(true);
|
||||
expect(
|
||||
isModelNotFoundErrorMessage(
|
||||
"HTTP 400 not_found_error: model: claude-3-5-haiku-20241022 (request_id: req_123)",
|
||||
|
||||
@@ -6,6 +6,9 @@ export function isModelNotFoundErrorMessage(raw: string): boolean {
|
||||
if (/no endpoints found for/i.test(msg)) {
|
||||
return true;
|
||||
}
|
||||
if (/\brouter not found\b/i.test(msg)) {
|
||||
return true;
|
||||
}
|
||||
if (/unknown model/i.test(msg)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user