Closed castroal closed 1 week ago
Seeing this in beta.3 as well and tried upgrading to beta.10.
It seems to me there have been changes in the API, since beta.3 has been working very well for months.
I wrote a foum post in openai forums about this as well.
https://community.openai.com/t/invalid-json-in-assistants-streaming-with-annotations/926883
I am having the same problem since yesterday. It worked fine before for weeks. I'm with beta.7.
Thank you for reaching out, @castroal ! I'm able to repro the issue. @span is correct that the issue is related to a recent change in the service's REST API exposing a latent bug in the library. We're working on a fix that we hope to release early next week.
This has been fixed as part of this PR: 🔗 https://github.com/openai/openai-dotnet/pull/206
We also just pushed a release today, so the fix is now live starting with version 2.0.0-beta.11: 🔗 https://www.nuget.org/packages/OpenAI/2.0.0-beta.11
Thank you!
.On 4 Sept 2024 12:52, SatoshiMorinaga @.***> wrote: I tried it with beta11 and got the same error. Has anyone had the issue resolved with beta11?
Works great for me with 11
Confirm this is not an issue with the underlying OpenAI API
Confirm this is not an issue with Azure OpenAI
Describe the bug
Using the AssistantClient with file search enabled and streaming gives the error: The requested operation requires an element of type 'String', but the target element has type 'Object'.'
The exception is raised here: https://github.com/openai/openai-dotnet/blob/79014abc01a00e13d5a334d3f6529ed590b8ee98/src/Generated/Models/InternalRunStepDeltaStepDetailsToolCallsFileSearchObject.Serialization.cs#L115
To Reproduce
Code snippets
OS
Windows 11
.NET version
net8.0
Library version
2.0.0-beta.10