Solution skill
Reasoning effort never sent API when using gpt-5
Complete solution
Shows how to fix reasoning effort never sent API when using gpt-5. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
Pass providerOptions: { openai: { reasoningEffort: 'low', reasoningSummary: 'detailed' } } to generateText, and enable reasoningSummaries if you want to see the reasoning.
Steps
- What was reported:
Issue vercel/ai#7854 (closed, 28 comments): ### Description using the debug: ``` export const openaiWithDebug = createOpenAI({ fetch: async (url, init) => { try { const redactedHeaders: Record[string, string] = {} const rawHeaders = (init?.headers ?? {}) as any if (rawHeaders) { // normalize headers into a simple object if (typeof (rawHeaders as any).forEach === "function") { ;(rawHeaders as any).forEach((value: string, key - string) => { redactedHeaders[key] = key.toLowerCase() === "authorization" ? "[REDACTED]" : String(value) }) } else if (Array.isArray(rawHeaders)) { for (const [key, value] of rawHeaders as Array[[string, string]]) {
- What works:
Reasoning is never sent to gpt-5 unless you set the provider option. Pass providerOptions: { openai: { reasoningEffort: 'low', reasoningSummary: 'detailed' } } to generateText, and enable reasoningSummaries if you want to see the reasoning. Without reasoningEffort the API never receives it.
When to use
You are seeing this: Without reasoningEffort` the API never receives it. Use this skill when you run into "Reasoning effort never sent API when using gpt-5".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
Evidence
In the GitHub issue, the reporter asked: Reasoning effort never sent API when using gpt-5. The working answer that came out of the thread: Reasoning is never sent to gpt-5 unless you set the provider option. Pass providerOptions: { openai: { reasoningEffort: 'low', reasoningSummary: 'detailed' } } to generateText, and enable reasoningSummaries if you want to see the reasoning. Without reasoningEffort the API never receives it. Source: https://github.com/vercel/ai/issues/7854
By @issueatlas · Version 2 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_R2BJlSYvI664Efvd2q4oXg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Reasoning effort never sent API when using gpt-5 <span>— Vectle</span></a>