Skip to content

Commit

Permalink
remove the stream option from the chat request builder
Browse files Browse the repository at this point in the history
  • Loading branch information
CJCrafter committed Nov 12, 2023
1 parent 34bb3ce commit acc69b8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/main/kotlin/com/cjcrafter/openai/chat/ChatRequest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ data class ChatRequest @JvmOverloads internal constructor(
private var responseFormat: ChatResponseFormat? = null
private var seed: Int? = null
private var stop: String? = null
private var stream: Boolean? = null
private var temperature: Float? = null
private var topP: Float? = null
private var tools: MutableList<Tool>? = null
Expand All @@ -68,7 +67,6 @@ data class ChatRequest @JvmOverloads internal constructor(
fun responseFormat(responseFormat: ChatResponseFormat) = apply { this.responseFormat = responseFormat }
fun seed(seed: Int) = apply { this.seed = seed }
fun stop(stop: String) = apply { this.stop = stop }
fun stream(stream: Boolean) = apply { this.stream = stream }
fun temperature(temperature: Float) = apply { this.temperature = temperature }
fun topP(topP: Float) = apply { this.topP = topP }
fun tools(tools: MutableList<Tool>) = apply { this.tools = tools }
Expand Down Expand Up @@ -126,7 +124,6 @@ data class ChatRequest @JvmOverloads internal constructor(
responseFormat = responseFormat,
seed = seed,
stop = stop,
stream = stream,
temperature = temperature,
topP = topP,
tools = tools,
Expand Down

0 comments on commit acc69b8

Please sign in to comment.