StreamingChatToolCallsBuilder missing in OpenAI 2.1.0 NuGet

Hi,
I’m currently working on implementing a streaming chatbot with function call capabilities using C# and the official 2.1.0 OpenAI NuGet. I’m following the example provided in the official GitHub repository: Example04_FunctionCallingStreamingAsync.cs

However, I’ve hit a roadblock. On line 40 of the example, there is a call to StreamingChatToolCallsBuilder. The problem is that this class does not exist in the library.

I’ve searched through the documentation and issues in the repository but can’t seem to figure out what I’m missing or how to proceed.

Has anyone encountered this issue before? Is the example outdated or referencing something that hasn’t been released yet? Any help or pointers would be greatly appreciated.

Thanks in advance!

It’s in the Example04_FunctionCallingStreaming.cs file right beside that one.

See openai-dotnet/examples/Chat/Example04_FunctionCallingStreaming.cs at 31c2ba63c625b1b4fc2640ddf378a97e89b89167 · openai/openai-dotnet · GitHub

2 Likes

I don’t understand why this isn’t in the library by default, but I guess there’s always a reason. Thanks for pointing me to it - you really saved my day!