Interface StreamChatCompletionSubscriber
public interface StreamChatCompletionSubscriber
An interface which is used to subscribe to streamed partial responses
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onChunk
(ChatCompletionChunk chunk) Will be called when a partial response is receivedvoid
Will be called when the stream is complete
-
Method Details
-
onChunk
Will be called when a partial response is received -
onComplete
void onComplete()Will be called when the stream is complete
-