init(samplingMode:temperature:maximumResponseTokens:toolCallingMode:)
Creates generation options that control token sampling behavior.
Declaration
init(samplingMode: GenerationOptions.SamplingMode? = nil, temperature: Double? = nil, maximumResponseTokens: Int? = nil, toolCallingMode: GenerationOptions.ToolCallingMode?)Parameters
- samplingMode:
A strategy to use for sampling from a distribution.
- temperature:
Increasing temperature makes it possible for the model to produce less likely responses. Must be between
0and1, inclusive. - maximumResponseTokens:
The maximum number of tokens the model is allowed to produce before being artificially halted. Must be positive.