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
Calling the method submitStreamingToolOutput crashes with following error at Serialization level:
java.lang.IllegalStateException: Serializing collections of different element types is not yet supported. Selected serializers: [kotlin.collections.ArrayList, kotlin.Boolean]
Steps to Reproduce
Just compute tool outputs locally and submit the streamed result with Runs.submitStreamingToolOutput That makes the kotlinx.serialization library to complain with the IllegalStateException mentioned before
Environment
openai-kotlin version: 4.0.1
Kotlin version: 2.1.10
OS: Mac
Additional Info
There's also an open issue in YouTrack for the root cause
The text was updated successfully, but these errors were encountered:
Don't know. Actually, even affecting the same method it seems that we had different problems. I had some problem regarding the serialization of mixed types (the list of tool outputs, and a boolean).
In contrast I didn't see the crash you mentioned. And that makes me wonder why could it be happening. Apparently we're using very similar setup (versions and OS).
Which ktor client engine choice did you make? I choose okhttp (Also, I choose version 3.0.0 of ktor dependency)
Description
Calling the method
submitStreamingToolOutput
crashes with following error at Serialization level:Steps to Reproduce
Just compute tool outputs locally and submit the streamed result with
Runs.submitStreamingToolOutput
That makes the kotlinx.serialization library to complain with the IllegalStateException mentioned beforeEnvironment
Additional Info
There's also an open issue in YouTrack for the root cause
The text was updated successfully, but these errors were encountered: