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
When using the Assistant API (v2) in streaming mode, it seems to always return an empty stream.
Digging into the code revealed this :
com.openai.core.handlers.SseHandler.kt line 42:
if (message.event == null) {
...
yield message;
...
}
Because of this test the SSE streams related to streaming Assistant (v2) runs return nothing because every entry in the stream is decorated by an 'event' tag.
It does work for 'completions' however since they are plain 'data' objects without an event-tag attached to it.
Not sure why 'event' needs to be null to return (yield) the message in the stream
Example code snippet below, it never prints the "Got something" line, for whatever message content that has been passed to the thread.
This is a misconfiguration in our streaming code generator config. The configuration is set up to support completions, which requires that only the data of events with an event tag are yielded. Clearly that's not suitable for the Assistants API, so we'll fix it :)
tag 0.11.2:
When using the Assistant API (v2) in streaming mode, it seems to always return an empty stream.
Digging into the code revealed this :
com.openai.core.handlers.SseHandler.kt line 42:
if (message.event == null) {
...
yield message;
...
}
Because of this test the SSE streams related to streaming Assistant (v2) runs return nothing because every entry in the stream is decorated by an 'event' tag.
It does work for 'completions' however since they are plain 'data' objects without an event-tag attached to it.
Not sure why 'event' needs to be null to return (yield) the message in the stream
Example code snippet below, it never prints the "Got something" line, for whatever message content that has been passed to the thread.
The text was updated successfully, but these errors were encountered: