Removing reasoning text from response

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'

I found it. I just did this:

result.toUIMessageStreamResponse({
    sendReasoning: false,
    headers: {
      'Content-Type': 'application/octet-stream',
      'Content-Encoding': 'none',
    },
  });

thanks for sharing the solution!