Skip to content

Commit

Permalink
Merge pull request #536 from takahirom/takahirom/use-max-token-instea…
Browse files Browse the repository at this point in the history
…d-of-max-completion-token/2024-11-03

Use max_tokens instead of max_completion_tokens
  • Loading branch information
takahirom authored Nov 3, 2024
2 parents 7d1b417 + c807eb7 commit c908cf3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ private data class ChatCompletionRequest(
val model: String,
val messages: List<Message>,
val temperature: Float,
@SerialName("max_completion_tokens") val maxTokens: Int,
@SerialName("max_tokens") val maxTokens: Int,
@SerialName("response_format") val responseFormat: ResponseFormat?,
val seed: Int,
)
Expand Down

0 comments on commit c908cf3

Please sign in to comment.