Error creating stream APICallError [AI_APICallError]: Provider returned error at file:///C:/Users/Ghassen/Documents/Coding/Projects/Junet.io/chat/node_modules/@openrouter/ai-sdk-provider/dist/index.mjs:809:14 at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async postToApi (file:///C:/Users/Ghassen/Documents/Coding/Projects/Junet.io/chat/node_modules/@openrouter/ai-sdk-provider/dist/index.mjs:736:28) at async OpenRouterChatLanguageModel.doStream (file:///C:/Users/Ghassen/Documents/Coding/Projects/Junet.io/chat/node_modules/@openrouter/ai-sdk-provider/dist/index.mjs:1595:50) at async createStream (file:///C:/Users/Ghassen/Documents/Coding/Projects/Junet.io/chat/node_modules/@mastra/core/dist/chunk-L5FY7VP5.js:322:1084) at async Object.start (file:///C:/Users/Ghassen/Documents/Coding/Projects/Junet.io/chat/node_modules/@mastra/core/dist/chunk-L5FY7VP5.js:319:180) { cause: undefined, url: 'https://openrouter.ai/api/v1/chat/completions', requestBodyValues: { model: 'deepseek/deepseek-chat-v3.1:free', models: undefined, logit_bias: undefined, logprobs: undefined, top_logprobs: undefined, user: undefined, parallel_tool_calls: undefined, max_tokens: undefined, temperature: 1, top_p: undefined, frequency_penalty: undefined, presence_penalty: undefined, seed: undefined, stop: undefined, response_format: undefined, top_k: undefined, messages: [ [Object], [Object], [Object] ], include_reasoning: undefined, reasoning: undefined, usage: undefined, plugins: undefined, web_search_options: undefined, provider: undefined, stream: true, stream_options: { include_usage: true } }, statusCode: 429, responseHeaders: { 'access-control-allow-origin': '*', 'cf-ray': '983b6f9bec993433-MRS', connection: 'keep-alive', 'content-type': 'application/json', date: 'Tue, 23 Sep 2025 16:32:05 GMT', 'permissions-policy': 'payment=(self "https://checkout.stripe.com" "https://connect-js.stripe.com" "https://js.stripe.com" "https://*.js.stripe.com" "https://hooks.stripe.com")', 'referrer-policy': 'no-referrer, strict-origin-when-cross-origin', server: 'cloudflare', 'transfer-encoding': 'chunked', vary: 'Accept-Encoding', 'x-content-type-options': 'nosniff' }, responseBody: '{"error":{"message":"Provider returned error","code":429,"metadata":{"raw":"deepseek/deepseek-chat-v3.1:free is temporarily rate-limited upstream. Please retry shortly, or add your own key to accumulate your rate limits: https://openrouter.ai/settings/integrations","provider_name":"DeepInfra"}},"user_id":"user_336jLBLfSvQ86bpctojWcyuGPnN"}', isRetryable: true, data: { error: { code: 429, message: 'Provider returned error', type: null, param: null } }, [Symbol(vercel.ai.error)]: true, [Symbol(vercel.ai.error.AI_APICallError)]: true } Error in agent stream { error: AI_APICallError: Provider returned error at file:///C:/Users/Ghassen/Documents/Coding/Projects/Junet.io/chat/node_modules/@openrouter/ai-sdk-provider/dist/index.mjs:809:14 at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async postToApi (file:///C:/Users/Ghassen/Documents/Coding/Projects/Junet.io/chat/node_modules/@openrouter/ai-sdk-provider/dist/index.mjs:736:28) at async OpenRouterChatLanguageModel.doStream (file:///C:/Users/Ghassen/Documents/Coding/Projects/Junet.io/chat/node_modules/@openrouter/ai-sdk-provider/dist/index.mjs:1595:50) at async createStream (file:///C:/Users/Ghassen/Documents/Coding/Projects/Junet.io/chat/node_modules/@mastra/core/dist/chunk-L5FY7VP5.js:322:1084) at async Object.start (file:///C:/Users/Ghassen/Documents/Coding/Projects/Junet.io/chat/node_modules/@mastra/core/dist/chunk-L5FY7VP5.js:319:180), runId: 'cf7f60bb-d544-4261-a357-6583cdf493f3' } Error executing step routing-agent-step: Error: Provider returned error at Object.transform (file:///C:/Users/Ghassen/Documents/Coding/Projects/Junet.io/chat/node_modules/@mastra/core/dist/chunk-L5FY7VP5.js:109:2689) at invokePromiseCallback (node:internal/webstreams/util:172:10) at Object. (node:internal/webstreams/util:177:23) at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:527:37) at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:573:10) at node:internal/webstreams/transformstream:378:16 at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1129:5) at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1255:5) at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1118:3) at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:1008:3) Error executing step Agent-Network-Outer-Workflow: Error: Error: Provider returned error at Object.transform (file:///C:/Users/Ghassen/Documents/Coding/Projects/Junet.io/chat/node_modules/@mastra/core/dist/chunk-L5FY7VP5.js:109:2689) at invokePromiseCallback (node:internal/webstreams/util:172:10) at Object. (node:internal/webstreams/util:177:23) at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:527:37) at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:573:10) at node:internal/webstreams/transformstream:378:16 at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1129:5) at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1255:5) at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1118:3) at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:1008:3) at DefaultExecutionEngine.preprocessExecutionError (file:///C:/Users/Ghassen/Documents/Coding/Projects/Junet.io/chat/node_modules/@mastra/core/dist/chunk-L5FY7VP5.js:189:99) at DefaultExecutionEngine.executeStep (file:///C:/Users/Ghassen/Documents/Coding/Projects/Junet.io/chat/node_modules/@mastra/core/dist/chunk-L5FY7VP5.js:210:563) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async DefaultExecutionEngine.executeLoop (file:///C:/Users/Ghassen/Documents/Coding/Projects/Junet.io/chat/node_modules/@mastra/core/dist/chunk-L5FY7VP5.js:211:3509) at async DefaultExecutionEngine.executeEntry (file:///C:/Users/Ghassen/Documents/Coding/Projects/Junet.io/chat/node_modules/@mastra/core/dist/chunk-L5FY7VP5.js:213:3266) at async DefaultExecutionEngine.execute (file:///C:/Users/Ghassen/Documents/Coding/Projects/Junet.io/chat/node_modules/@mastra/core/dist/chunk-L5FY7VP5.js:204:904) at async Run._start (file:///C:/Users/Ghassen/Documents/Coding/Projects/Junet.io/chat/node_modules/@mastra/core/dist/chunk-L5FY7VP5.js:282:533)