copy
Creates a copy of these parameters with optional changes to specific properties.
Unlike the chat and FIM parameters, the copy is validated exactly like a freshly built one.
Example:
val streaming = params.copy(stream = true)Return
A new ResponseParams instance with the specified changes
Parameters
New model, or the existing one if not specified
New system-level instruction, or the existing one if not specified
New thinking-mode configuration, or the existing one if not specified
New output ceiling, or the existing one if not specified
New streaming setting, or the existing one if not specified
New temperature, or the existing one if not specified
New top-p value, or the existing one if not specified
New output shape, or the existing one if not specified
New tool list, or the existing one if not specified
New tool choice, or the existing one if not specified
New log-probability count, or the existing one if not specified
New end-user identifier, or the existing one if not specified