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
I am using Azure OpenAI o3 and o4-mini. I want to stream chain of thoughts like Grok or ChatGpt. I saw Azure Playground can do it. I just can not find the document to do that. Thanks.
When you call stream_events(), you will receive RawResponsesStreamEvent with the data being ResponseReasoningSummaryPartAddedEvent, ResponseReasoningSummaryTextDeltaEvent etc, which you can use to stream.
Activity
rm-openai commentedon May 21, 2025
You'll need to do a couple of things:
ModelSettings
, setReasoning
so that you get chain of thought summaries: https://openai.github.io/openai-agents-python/ref/model_settings/#agents.model_settings.ModelSettings.reasoningstream_events()
, you will receiveRawResponsesStreamEvent
with thedata
beingResponseReasoningSummaryPartAddedEvent
,ResponseReasoningSummaryTextDeltaEvent
etc, which you can use to stream.Rvey commentedon May 21, 2025
is there any example using o model family with the agents SDK ?
passacagllia commentedon May 22, 2025
Thank you mate. Very helpful!