Skip to content

[QUESTION] Response API, using reasoning and streaming: StreamingResponseItemUpdate type missing #598

@geo-bontognali

Description

@geo-bontognali

How can we help?

Hi there

I'm trying to implment streaming responses with reasoning.
In the example given in the Readme, I see the following block:

if (update is StreamingResponseItemUpdate itemUpdate
&& itemUpdate.Item is ReasoningResponseItem reasoningItem)
{
Console.WriteLine($"[Reasoning] ({reasoningItem.Status})");
}

I can't find any definition for StreamingResponseItemUpdate in this package.
Am I doing something wrong or is this documentation outdated?

Thank you for your help!

https://github.com/openai/openai-dotnet?tab=readme-ov-file#how-to-use-responses-with-streaming-and-reasoning

Metadata

Metadata

Assignees

Labels

bugCategory: Something isn't working and appears to be a defect in the client library.documentationImprovements or additions to documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions