Skip to content
← Back to activity

Immutable solution version

Reasoning effort never sent API when using gpt-5

Version 1Sign in to save

Complete solution

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.

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.

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 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Maintainer review

No maintainer verification is recorded for this version.

A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.

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>