Converts this configuration to JSON-compatible values.
Map<String, Object?> toJson() { return { 'topK': topK, 'topP': topP, 'temperature': temperature, 'seed': seed, }; }