toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      'model': model,
      'temperature': temperature,
      'max_tokens': maxTokens,
      'top_p': topP,
      'presence_penalty': presencePenalty,
      'messages': List<dynamic>.from(messages.map((x) => x.toJson())),
    };