ConfigCompletion.fromMap constructor
Create the object from a Map<String, dynamic>
Implementation
factory ConfigCompletion.fromMap(Map<String, dynamic> map) {
return ConfigCompletion(
model: map['model'] != null ? map['model'] as String : null,
maxTokens: map['max_tokens'] != null ? map['max_tokens'] as int : null,
temperature:
map['temperature'] != null ? map['temperature'] as double : null,
topP: map['top_p'] != null ? map['top_p'] as int : null,
n: map['n'] != null ? map['n'] as int : null,
stream: map['stream'] != null ? map['stream'] as bool : null,
logprobs: map['logprobs'] != null ? map['logprobs'] as int : null,
stop: map['stop'] != null ? map['stop'] as String : null,
);
}