This code to parse sse data will add null parameters (string name = null;BinaryData arguments = null;) to InternalChatCompletionMessageToolCallChunkFunction
When to call StreamingChatToolCallUpdate.FunctionArgumentsUpdate.ToString() will throw null exception.
It may be cause by this SSE data. The delta is empty
Service
OpenAI
Describe the bug
https://github.com/openai/openai-dotnet/blob/ef201cd6016bc1111be4c0098fd643554d6e9a0b/src/Generated/Models/InternalChatCompletionMessageToolCallChunkFunction.Serialization.cs#L99
This code to parse sse data will add null parameters (
string name = null;
BinaryData arguments = null;
) toInternalChatCompletionMessageToolCallChunkFunction
When to callStreamingChatToolCallUpdate.FunctionArgumentsUpdate.ToString()
will throw null exception.It may be cause by this SSE data. The
delta
is emptySteps to reproduce
See error
Log
Code snippets
No response
OS
winos
.NET version
.net 8.0
Library version
2.1.0-beta.1