Package com.openai.core.http
Interface AsyncStreamResponse.Handler
-
- All Implemented Interfaces:
public interface AsyncStreamResponse.Handler<T extends Object>
A class for handling streaming events.
-
-
Method Summary
-
-
Method Detail
-
onComplete
Unit onComplete(Optional<Throwable> error)
Called when a stream is fully consumed, errors, or gets closed early.
onNext will not be called once this method is called.
- Parameters:
error
- Non-empty if the stream completed due to an error.
-
-
-
-