Skip to content

Commit 5d8cdc3

Browse files
committed
add stream docs to ChatRequest
1 parent 84a07a3 commit 5d8cdc3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/kotlin/com/cjcrafter/openai/chat/ChatRequest.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ import com.google.gson.annotations.SerializedName
2020
* calls. You can easily store your [ChatRequest] as a string or as a json file
2121
* using google's GSON library to serialize the object as a JSON string.
2222
*
23-
* You should not set [stream]. TODO update docs after adding stream support
23+
* You should not set [stream]. The stream option is handled using [ChatBot.streamResponse].
24+
* This allows developers to get tokens in real time instead of all at once
25+
* and after a long delay.
2426
*
2527
* @property model The model used to generate the text. Recommended: `"gpt-3.5-turbo"` (without quotes).
2628
* @property messages A mutable list of previous messages from the conversation.

0 commit comments

Comments
 (0)