Upstream LLM API error from openai.responses (model: gpt-5.1-codex-mini) { error: APICallError [AI_APICallError]: Bad Request at file:///Users/azhar/code/specbuilder/node_modules/@ai-sdk/provider-utils/dist/index.mjs:950:14 at process.processTicksAndRejections (node:internal/process/task_queues:103:5) at async postToApi (file:///Users/azhar/code/specbuilder/node_modules/@ai-sdk/provider-utils/dist/index.mjs:781:28) at async OpenAIResponsesLanguageModel.doGenerate (file:///Users/azhar/code/specbuilder/node_modules/@ai-sdk/openai/dist/index.mjs:3453:9) at async AISDKV5LanguageModel.doGenerate (file:///Users/azhar/code/specbuilder/node_modules/@mastra/core/dist/chunk-MRV5NCPC.js:907:20) at async pRetry.default.retries (file:///Users/azhar/code/specbuilder/node_modules/@mastra/core/dist/chunk-VBPU6CLZ.js:11705:34) at async Module.pRetry (file:///Users/azhar/code/specbuilder/node_modules/p-retry/index.js:197:19) at async createStream (file:///Users/azhar/code/specbuilder/node_modules/@mastra/core/dist/chunk-VBPU6CLZ.js:11702:16) at async Object.start (file:///Users/azhar/code/specbuilder/node_modules/@mastra/core/dist/chunk-VBPU6CLZ.js:2023:27) { cause: undefined, url: 'https://api.openai.com/v1/responses', requestBodyValues: { model: 'gpt-5.1-codex-mini', input: [Array], temperature: undefined, top_p: undefined, max_output_tokens: 60000, conversation: undefined, max_tool_calls: undefined, metadata: undefined, parallel_tool_calls: undefined, previous_response_id: undefined, store: false, user: undefined, instructions: 'You are an interactive CLI tool that helps users with software engineering tasks. Use the instructions below and the tools available to you to assist the user.\n' + '\n' + "IMPORTANT: You should be concise, direct, and helpful. Focus on solving the user's problem efficiently.", service_tier: undefined, include: [Array], prompt_cache_key: undefined, prompt_cache_retention: undefined, safety_identifier: undefined, top_logprobs: undefined, truncation: undefined, reasoning: [Object], tools: undefined, tool_choice: undefined }, statusCode: 400, responseHeaders: { 'alt-svc': 'h3=":443"; ma=86400', 'cf-cache-status': 'DYNAMIC', 'cf-ray': '9db28c601ebc179c-MAA', connection: 'keep-alive', 'content-length': '39', 'content-type': 'application/json', 'cross-origin-opener-policy': 'same-origin-allow-popups', date: 'Thu, 12 Mar 2026 11:44:41 GMT', nel: '{"report_to":"cf-nel","success_fraction":0.01,"max_age":604800}', 'referrer-policy': 'strict-origin-when-cross-origin', 'report-to': '{"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=ljYHpypC%2FRCb%2F7vnXFXA4UOuon8Mb8XP9mY91abJvxWkXzzV9H3xyuBrqc2AdDEFzAkGpucOEWyRrB9iuGsRPpl1tSswo2OX"}]}', server: 'cloudflare', 'set-cookie': '__cf_bm=xXCoC0PmTFAxWlYa4LP6jOBbDbP_ow7tc1Wo5n.fTE0-1773315880.973834-1.0.1.1-YCD6GMKiNR1A2jbqjw202aRwn2Vrnpd4cpyWypMEawyJkxEJxCTFqeMi36cyOfheW8jSvJNE0OLTUHaiGzc9Lw3r6hBeG4g6Rj2vzAQYBt1GC6J8nT50vyRZzn1X0DHo; HttpOnly; Secure; Path=/; Domain=chatgpt.com; Expires=Thu, 12 Mar 2026 12:14:41 GMT', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 'x-content-type-options': 'nosniff', 'x-oai-request-id': '7171a04a-2760-46b9-b679-a0885c873f18', 'x-openai-proxy-wasm': 'v0.1' }, responseBody: '{"detail":"Stream must be set to true"}', isRetryable: false, data: undefined, Symbol(vercel.ai.error): true, Symbol(vercel.ai.error.AI_APICallError): true }, runId: '9e45db68-d425-4905-afc7-787d924ad654', provider: 'openai.responses', modelId: 'gpt-5.1-codex-mini' } Upstream LLM API error from openai.responses (model: gpt-5.1-codex-mini) { error: APICallError [AI_APICallError]: Bad Request at file:///Users/azhar/code/specbuilder/node_modules/@ai-sdk/provider-utils/dist/index.mjs:950:14 at process.processTicksAndRejections (node:internal/process/task_queues:103:5) at async postToApi (file:///Users/azhar/code/specbuilder/node_modules/@ai-sdk/provider-utils/dist/index.mjs:781:28) at async OpenAIResponsesLanguageModel.doGenerate (file:///Users/azhar/code/specbuilder/node_modules/@ai-sdk/openai/dist/index.mjs:3453:9) at async AISDKV5LanguageModel.doGenerate (file:///Users/azhar/code/specbuilder/node_modules/@mastra/core/dist/chunk-MRV5NCPC.js:907:20) at async pRetry.default.retries (file:///Users/azhar/code/specbuilder/node_modules/@mastra/core/dist/chunk-VBPU6CLZ.js:11705:34) at async Module.pRetry (file:///Users/azhar/code/specbuilder/node_modules/p-retry/index.js:197:19) at async createStream (file:///Users/azhar/code/specbuilder/node_modules/@mastra/core/dist/chunk-VBPU6CLZ.js:11702:16) at async Object.start (file:///Users/azhar/code/specbuilder/node_modules/@mastra/core/dist/chunk-VBPU6CLZ.js:2023:27) { cause: undefined, url: 'https://api.openai.com/v1/responses', requestBodyValues: { model: 'gpt-5.1-codex-mini', input: [Array], temperature: undefined, top_p: undefined, max_output_tokens: 60000, conversation: undefined, max_tool_calls: undefined, metadata: undefined, parallel_tool_calls: undefined, previous_response_id: undefined, store: false, user: undefined, instructions: 'You are an interactive CLI tool that helps users with software engineering tasks. Use the instructions below and the tools available to you to assist the user.\n' + '\n' + "IMPORTANT: You should be concise, direct, and helpful. Focus on solving the user's problem efficiently.", service_tier: undefined, include: [Array], prompt_cache_key: undefined, prompt_cache_retention: undefined, safety_identifier: undefined, top_logprobs: undefined, truncation: undefined, reasoning: [Object], tools: undefined, tool_choice: undefined }, statusCode: 400, responseHeaders: { 'alt-svc': 'h3=":443"; ma=86400', 'cf-cache-status': 'DYNAMIC', 'cf-ray': '9db28c9c38cd800a-MAA', connection: 'keep-alive', 'content-length': '39', 'content-type': 'application/json', 'cross-origin-opener-policy': 'same-origin-allow-popups', date: 'Thu, 12 Mar 2026 11:44:50 GMT', nel: '{"report_to":"cf-nel","success_fraction":0.01,"max_age":604800}', 'referrer-policy': 'strict-origin-when-cross-origin', 'report-to': '{"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=b7OhnUVYBFCaYxrjo%2BmvuUwellQk2DPACZP%2B7NSCGLdGJhlluDs%2BWQTRbz4nVjencSoPWNmYoWC9e0UQszPKeXhEwlx4C%2BozLsE%3D"}]}', server: 'cloudflare', 'set-cookie': '__cf_bm=ddUIH2kCdSdSV_ebKNsYfC79_03kLFCq6Wz_yNZZQ5U-1773315890.596584-1.0.1.1-kfqVmj1RrZUxIukMrabSKQUjDsn3SNZpRQdfaAGY.EVHG3rnsCzm5FqqiFi539qjb2Vtvm_7Uks5LhoQ3R4yGX94sLMY4f5QdKKwxzwNwHouJLTBnPmxcEu9YMkn7MeX; HttpOnly; Secure; Path=/; Domain=chatgpt.com; Expires=Thu, 12 Mar 2026 12:14:50 GMT', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 'x-content-type-options': 'nosniff', 'x-oai-request-id': '5a0b2b66-284f-4644-96f4-6852ac7b6060', 'x-openai-proxy-wasm': 'v0.1' }, responseBody: '{"detail":"Stream must be set to true"}', isRetryable: false, data: undefined, Symbol(vercel.ai.error): true, Symbol(vercel.ai.error.AI_APICallError): true }, runId: '7e054d77-480e-4368-95b7-9efa5085d8ad', provider: 'openai.responses', modelId: 'gpt-5.1-codex-mini' }