chore: 🐝 Update SDK - Generate 0.2.0 #110
pr-validation.yaml
on: pull_request
validate
/
validate
1m 11s
Annotations
8 errors
|
validate / validate
Process completed with exit code 1.
|
|
tests/e2e/callModel.test.ts > callModel E2E Tests > Response parameters > should support provider with quantizations filter:
src/lib/matchers.ts#L261
OpenRouterDefaultError: API error occurred: Status 424
Body: {"error":{"message":"Provider returned error","code":424,"metadata":{"raw":"{\"errors\":[{\"message\":\"AiError: AiError: could not route request to AI model (cce7ed30-562d-41c7-a3af-fbb5a4180a50)\",\"code\":4002}],\"success\":false,\"result\":{},\"messages\":[]}","provider_name":"Cloudflare"}},"user_id":"org_2uMVNwONqhSdZXQy1QtyWuCjTxZ"}
❯ matchFunc src/lib/matchers.ts:261:16
❯ $do src/funcs/betaResponsesSend.ts:279:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { statusCode: 424, body: '{"error":{"message":"Provider returned error","code":424,"metadata":{"raw":"{\"errors\":[{\"message\":\"AiError: AiError: could not route request to AI model (cce7ed30-562d-41c7-a3af-fbb5a4180a50)\",\"code\":4002}],\"success\":false,\"result\":{},\"messages\":[]}","provider_name":"Cloudflare"}},"user_id":"org_2uMVNwONqhSdZXQy1QtyWuCjTxZ"}', headers: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, contentType: 'application/json', rawResponse: { constructor: 'Function<Response>', type: 'basic', url: 'https://openrouter.ai/api/v1/responses', redirected: false, status: 424, ok: false, statusText: 'Failed Dependency', headers: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, body: { constructor: 'Function<ReadableStream>', locked: true, cancel: 'Function<cancel>', getReader: 'Function<getReader>', pipeThrough: 'Function<pipeThrough>', pipeTo: 'Function<pipeTo>', tee: 'Function<tee>', values: 'Function<values>' }, bodyUsed: true, clone: 'Function<clone>', blob: 'Function<blob>', arrayBuffer: 'Function<arrayBuffer>', text: 'Function<text>', json: 'Function<json>', formData: 'Function<formData>', bytes: 'Function<bytes>' } }
|
|
tests/e2e/callModel.test.ts > callModel E2E Tests > Response parameters > should support provider with order preference:
src/lib/matchers.ts#L261
OpenRouterDefaultError: API error occurred: Status 424
Body: {"error":{"message":"Provider returned error","code":424,"metadata":{"raw":"{\"errors\":[{\"message\":\"AiError: AiError: could not route request to AI model (e854bd31-a064-4937-99f5-95bc8019c811)\",\"code\":4002}],\"success\":false,\"result\":{},\"messages\":[]}","provider_name":"Cloudflare"}},"user_id":"org_2uMVNwONqhSdZXQy1QtyWuCjTxZ"}
❯ matchFunc src/lib/matchers.ts:261:16
❯ $do src/funcs/betaResponsesSend.ts:279:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { statusCode: 424, body: '{"error":{"message":"Provider returned error","code":424,"metadata":{"raw":"{\"errors\":[{\"message\":\"AiError: AiError: could not route request to AI model (e854bd31-a064-4937-99f5-95bc8019c811)\",\"code\":4002}],\"success\":false,\"result\":{},\"messages\":[]}","provider_name":"Cloudflare"}},"user_id":"org_2uMVNwONqhSdZXQy1QtyWuCjTxZ"}', headers: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, contentType: 'application/json', rawResponse: { constructor: 'Function<Response>', type: 'basic', url: 'https://openrouter.ai/api/v1/responses', redirected: false, status: 424, ok: false, statusText: 'Failed Dependency', headers: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, body: { constructor: 'Function<ReadableStream>', locked: true, cancel: 'Function<cancel>', getReader: 'Function<getReader>', pipeThrough: 'Function<pipeThrough>', pipeTo: 'Function<pipeTo>', tee: 'Function<tee>', values: 'Function<values>' }, bodyUsed: true, clone: 'Function<clone>', blob: 'Function<blob>', arrayBuffer: 'Function<arrayBuffer>', text: 'Function<text>', json: 'Function<json>', formData: 'Function<formData>', bytes: 'Function<bytes>' } }
|
|
tests/e2e/callModel.test.ts > callModel E2E Tests > Response parameters > should support provider parameter with correct shape:
src/lib/matchers.ts#L261
OpenRouterDefaultError: API error occurred: Status 424
Body: {"error":{"message":"Provider returned error","code":424,"metadata":{"raw":"{\"errors\":[{\"message\":\"AiError: AiError: could not route request to AI model (fc95fe6d-7b07-49a3-9ed7-b5e4c926e041)\",\"code\":4002}],\"success\":false,\"result\":{},\"messages\":[]}","provider_name":"Cloudflare"}},"user_id":"org_2uMVNwONqhSdZXQy1QtyWuCjTxZ"}
❯ matchFunc src/lib/matchers.ts:261:16
❯ $do src/funcs/betaResponsesSend.ts:279:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { statusCode: 424, body: '{"error":{"message":"Provider returned error","code":424,"metadata":{"raw":"{\"errors\":[{\"message\":\"AiError: AiError: could not route request to AI model (fc95fe6d-7b07-49a3-9ed7-b5e4c926e041)\",\"code\":4002}],\"success\":false,\"result\":{},\"messages\":[]}","provider_name":"Cloudflare"}},"user_id":"org_2uMVNwONqhSdZXQy1QtyWuCjTxZ"}', headers: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, contentType: 'application/json', rawResponse: { constructor: 'Function<Response>', type: 'basic', url: 'https://openrouter.ai/api/v1/responses', redirected: false, status: 424, ok: false, statusText: 'Failed Dependency', headers: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, body: { constructor: 'Function<ReadableStream>', locked: true, cancel: 'Function<cancel>', getReader: 'Function<getReader>', pipeThrough: 'Function<pipeThrough>', pipeTo: 'Function<pipeTo>', tee: 'Function<tee>', values: 'Function<values>' }, bodyUsed: true, clone: 'Function<clone>', blob: 'Function<blob>', arrayBuffer: 'Function<arrayBuffer>', text: 'Function<text>', json: 'Function<json>', formData: 'Function<formData>', bytes: 'Function<bytes>' } }
|
|
tests/e2e/callModel.test.ts > callModel E2E Tests > response.getResponse - Full response with usage > should allow concurrent access with other methods:
src/lib/matchers.ts#L261
OpenRouterDefaultError: API error occurred: Status 424
Body: {"error":{"message":"Provider returned error","code":424,"metadata":{"raw":"{\"errors\":[{\"message\":\"AiError: AiError: could not route request to AI model (c55733ea-55e8-4b08-8128-674f097a9adc)\",\"code\":4002}],\"success\":false,\"result\":{},\"messages\":[]}","provider_name":"Cloudflare"}},"user_id":"org_2uMVNwONqhSdZXQy1QtyWuCjTxZ"}
❯ matchFunc src/lib/matchers.ts:261:16
❯ $do src/funcs/betaResponsesSend.ts:279:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { statusCode: 424, body: '{"error":{"message":"Provider returned error","code":424,"metadata":{"raw":"{\"errors\":[{\"message\":\"AiError: AiError: could not route request to AI model (c55733ea-55e8-4b08-8128-674f097a9adc)\",\"code\":4002}],\"success\":false,\"result\":{},\"messages\":[]}","provider_name":"Cloudflare"}},"user_id":"org_2uMVNwONqhSdZXQy1QtyWuCjTxZ"}', headers: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, contentType: 'application/json', rawResponse: { constructor: 'Function<Response>', type: 'basic', url: 'https://openrouter.ai/api/v1/responses', redirected: false, status: 424, ok: false, statusText: 'Failed Dependency', headers: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, body: { constructor: 'Function<ReadableStream>', locked: true, cancel: 'Function<cancel>', getReader: 'Function<getReader>', pipeThrough: 'Function<pipeThrough>', pipeTo: 'Function<pipeTo>', tee: 'Function<tee>', values: 'Function<values>' }, bodyUsed: true, clone: 'Function<clone>', blob: 'Function<blob>', arrayBuffer: 'Function<arrayBuffer>', text: 'Function<text>', json: 'Function<json>', formData: 'Function<formData>', bytes: 'Function<bytes>' } }
|
|
tests/e2e/callModel.test.ts > callModel E2E Tests > response.getResponse - Full response with usage > should return full response with correct shape:
src/lib/matchers.ts#L261
OpenRouterDefaultError: API error occurred: Status 424
Body: {"error":{"message":"Provider returned error","code":424,"metadata":{"raw":"{\"errors\":[{\"message\":\"AiError: AiError: could not route request to AI model (dea7631e-519f-4bb2-b269-7f0c802bb7e8)\",\"code\":4002}],\"success\":false,\"result\":{},\"messages\":[]}","provider_name":"Cloudflare"}},"user_id":"org_2uMVNwONqhSdZXQy1QtyWuCjTxZ"}
❯ matchFunc src/lib/matchers.ts:261:16
❯ $do src/funcs/betaResponsesSend.ts:279:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { statusCode: 424, body: '{"error":{"message":"Provider returned error","code":424,"metadata":{"raw":"{\"errors\":[{\"message\":\"AiError: AiError: could not route request to AI model (dea7631e-519f-4bb2-b269-7f0c802bb7e8)\",\"code\":4002}],\"success\":false,\"result\":{},\"messages\":[]}","provider_name":"Cloudflare"}},"user_id":"org_2uMVNwONqhSdZXQy1QtyWuCjTxZ"}', headers: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, contentType: 'application/json', rawResponse: { constructor: 'Function<Response>', type: 'basic', url: 'https://openrouter.ai/api/v1/responses', redirected: false, status: 424, ok: false, statusText: 'Failed Dependency', headers: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, body: { constructor: 'Function<ReadableStream>', locked: true, cancel: 'Function<cancel>', getReader: 'Function<getReader>', pipeThrough: 'Function<pipeThrough>', pipeTo: 'Function<pipeTo>', tee: 'Function<tee>', values: 'Function<values>' }, bodyUsed: true, clone: 'Function<clone>', blob: 'Function<blob>', arrayBuffer: 'Function<arrayBuffer>', text: 'Function<text>', json: 'Function<json>', formData: 'Function<formData>', bytes: 'Function<bytes>' } }
|
|
tests/e2e/callModel.test.ts > callModel E2E Tests > response.fullChatStream - Chat-compatible streaming > should validate content.delta events have proper structure:
src/lib/matchers.ts#L261
OpenRouterDefaultError: API error occurred: Status 424
Body: {"error":{"message":"Provider returned error","code":424,"metadata":{"raw":"{\"errors\":[{\"message\":\"AiError: AiError: could not route request to AI model (b58b645f-cd18-4461-912a-610d9dde65a2)\",\"code\":4002}],\"success\":false,\"result\":{},\"messages\":[]}","provider_name":"Cloudflare"}},"user_id":"org_2uMVNwONqhSdZXQy1QtyWuCjTxZ"}
❯ matchFunc src/lib/matchers.ts:261:16
❯ $do src/funcs/betaResponsesSend.ts:279:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { statusCode: 424, body: '{"error":{"message":"Provider returned error","code":424,"metadata":{"raw":"{\"errors\":[{\"message\":\"AiError: AiError: could not route request to AI model (b58b645f-cd18-4461-912a-610d9dde65a2)\",\"code\":4002}],\"success\":false,\"result\":{},\"messages\":[]}","provider_name":"Cloudflare"}},"user_id":"org_2uMVNwONqhSdZXQy1QtyWuCjTxZ"}', headers: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, contentType: 'application/json', rawResponse: { constructor: 'Function<Response>', type: 'basic', url: 'https://openrouter.ai/api/v1/responses', redirected: false, status: 424, ok: false, statusText: 'Failed Dependency', headers: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, body: { constructor: 'Function<ReadableStream>', locked: true, cancel: 'Function<cancel>', getReader: 'Function<getReader>', pipeThrough: 'Function<pipeThrough>', pipeTo: 'Function<pipeTo>', tee: 'Function<tee>', values: 'Function<values>' }, bodyUsed: true, clone: 'Function<clone>', blob: 'Function<blob>', arrayBuffer: 'Function<arrayBuffer>', text: 'Function<text>', json: 'Function<json>', formData: 'Function<formData>', bytes: 'Function<bytes>' } }
|
|
tests/e2e/callModel.test.ts > callModel E2E Tests > response.fullChatStream - Chat-compatible streaming > should successfully stream in chat-compatible format:
src/lib/matchers.ts#L261
OpenRouterDefaultError: API error occurred: Status 424
Body: {"error":{"message":"Provider returned error","code":424,"metadata":{"raw":"{\"errors\":[{\"message\":\"AiError: AiError: could not route request to AI model (9f92fe4e-98b9-470f-b5ad-7e56c9d369a5)\",\"code\":4002}],\"success\":false,\"result\":{},\"messages\":[]}","provider_name":"Cloudflare"}},"user_id":"org_2uMVNwONqhSdZXQy1QtyWuCjTxZ"}
❯ matchFunc src/lib/matchers.ts:261:16
❯ $do src/funcs/betaResponsesSend.ts:279:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { statusCode: 424, body: '{"error":{"message":"Provider returned error","code":424,"metadata":{"raw":"{\"errors\":[{\"message\":\"AiError: AiError: could not route request to AI model (9f92fe4e-98b9-470f-b5ad-7e56c9d369a5)\",\"code\":4002}],\"success\":false,\"result\":{},\"messages\":[]}","provider_name":"Cloudflare"}},"user_id":"org_2uMVNwONqhSdZXQy1QtyWuCjTxZ"}', headers: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, contentType: 'application/json', rawResponse: { constructor: 'Function<Response>', type: 'basic', url: 'https://openrouter.ai/api/v1/responses', redirected: false, status: 424, ok: false, statusText: 'Failed Dependency', headers: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, body: { constructor: 'Function<ReadableStream>', locked: true, cancel: 'Function<cancel>', getReader: 'Function<getReader>', pipeThrough: 'Function<pipeThrough>', pipeTo: 'Function<pipeTo>', tee: 'Function<tee>', values: 'Function<values>' }, bodyUsed: true, clone: 'Function<clone>', blob: 'Function<blob>', arrayBuffer: 'Function<arrayBuffer>', text: 'Function<text>', json: 'Function<json>', formData: 'Function<formData>', bytes: 'Function<bytes>' } }
|