toJson method
Implementation
Map<String, dynamic> toJson() => {
if (maxTokens != null) 'max_tokens': maxTokens,
if (ttftTimeoutMs != null) 'ttft_timeout_ms': ttftTimeoutMs,
if (seed != null) 'seed': seed,
if (temperature != null) 'temperature': temperature,
if (topK != null) 'top_k': topK,
if (topP != null) 'top_p': topP,
if (minP != null) 'min_p': minP,
if (penaltyRepeat != null) 'penalty_repeat': penaltyRepeat,
if (penaltyFreq != null) 'penalty_freq': penaltyFreq,
if (dryMultiplier != null) 'dry_multiplier': dryMultiplier,
};