copy
Creates a copy of these parameters with optional changes to specific properties.
Example:
// Create a streaming version of existing parameters
val streamParams = regularParams.copy(stream = true)
Return
A new ChatCompletionParams instance with the specified changes
Parameters
New chat model to use, or existing value if not specified
New frequency penalty value, or existing value if not specified
New maximum token count, or existing value if not specified
New presence penalty value, or existing value if not specified
New response format, or existing value if not specified
New stop reason, or existing value if not specified
New streaming setting, or existing value if not specified
New stream options, or existing value if not specified
New temperature value, or existing value if not specified
New top-p value, or existing value if not specified
New tools list, or existing value if not specified
New tool choice, or existing value if not specified
New log probabilities setting, or existing value if not specified
New top log probabilities count, or existing value if not specified