chat Completion Params
Creates chat completion parameters using a builder pattern.
This function provides a convenient way to configure non-streaming chat completion parameters using Kotlin's DSL-style builder syntax.
Example:
val params = chatCompletionParams {
model = ChatModel.DEEPSEEK_CHAT
temperature = 0.8
maxTokens = 500
presencePenalty = 0.3
responseFormat = ResponseFormat.JsonObject
}
Content copied to clipboard
Return
Configured ChatCompletionParams instance
Parameters
block
Configuration block for setting parameter values