Skip to content

Commit 8c3bc76

Browse files
committed
deprecate ChatRequest#stream to discourage users from using it
1 parent 41ca204 commit 8c3bc76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ data class ChatRequest @JvmOverloads constructor(
4949
var temperature: Float? = null,
5050
@field:SerializedName("top_p") var topP: Float? = null,
5151
var n: Int? = null,
52-
var stream: Boolean? = null,
52+
@Deprecated("Use ChatBot#streamResponse") var stream: Boolean? = null,
5353
var stop: String? = null,
5454
@field:SerializedName("max_tokens") var maxTokens: Int? = null,
5555
@field:SerializedName("presence_penalty") var presencePenalty: Float? = null,

0 commit comments

Comments
 (0)