Interface StreamChatCompletionSubscriber
public interface StreamChatCompletionSubscriber
An interface which is used to subscribe to streamed partial responses
-
Method Summary
Modifier and TypeMethodDescriptionvoidonChunk(ChatCompletionChunk chunk) Will be called when a partial response is receivedvoidWill 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
-