You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Streaming Fails Due to {"include_usage": True} #442
Description
When using Mistral AI's OpenAI-compatible API with streaming output Runner.run_streamed, the hardcoded stream_options={"include_usage": True} in the code triggers a 422 Unprocessable Entity error. Mistral's API does not support the include_usage parameter in stream_options, causing compatibility issues.
Activity
rm-openai commentedon Apr 7, 2025
Proposed fix makes sense, PR welcome!
Ddper commentedon Apr 10, 2025
@rm-openai I created a PR, pls review.
add overwrite mechanism for stream_options (#465)
seratch commentedon Jun 25, 2025
Resolved by #465; thanks for the contribution!
add overwrite mechanism for stream_options (#465)
add overwrite mechanism for stream_options (#465)