-
-
Notifications
You must be signed in to change notification settings - Fork 256
Closed
Description
Hello!
EDIT: It seems this is fixed on openai-php/client openai-php/client#734 so a version bump here would probably help
When using the OpenAI::responses()->createStreamed method, a keepalive event kills the stream.
open ai is sending new "keepalive" events which are not handled by this library and throw an error (CreateStreamedResponse line 117)
It does not seem to be possible to handle catching this error on my end and keeping the stream going.
OpenAI\Exceptions\UnknownEventException Unknown Responses streaming event: keepalive
vendor/openai-php/client/src/Responses/Responses/CreateStreamedResponse.php:83 OpenAI\Responses\Responses\CreateStreamedResponse::from
vendor/openai-php/client/src/Responses/StreamResponse.php:72 OpenAI\Responses\StreamResponse::getIterator
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels