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.