ChatGPT-Java-API
2.0.2-SNAPSHOT
jvm
ChatGPT-Java-API
/
com.cjcrafter.openai
/
OpenAI
/
Companion
/
streamChatCompletion
stream
Chat
Completion
fun
OpenAI
.
streamChatCompletion
(
request
:
ChatRequest
,
consumer
:
(
ChatResponseChunk
)
->
Unit
)
Extension function to stream a chat completion using kotlin coroutines.