[▲ Vercel Community](/) · [Categories](/categories) · [Latest](/latest) · [Top](/top) · [Live](/live)

[AI SDK](/c/ai-sdk/62)

# Removing reasoning text from response

120 views · 0 likes · 3 posts


roshi (@roshidoni) · 2025-11-29

I am currently developing ai application in React native + expo. How can I remove reasoning from StreamText? 

I am using model: ` 'openai/gpt-oss-20b'`


roshi (@roshidoni) · 2025-11-30

I found it. I just did this:
```
result.toUIMessageStreamResponse({
    sendReasoning: false,
    headers: {
      'Content-Type': 'application/octet-stream',
      'Content-Encoding': 'none',
    },
  });
```


Jacob Paris (@jacobparis) · 2025-12-01

thanks for sharing the solution!