settignsFromJson static method

GroqChatSettings settignsFromJson(
  1. Map<String, dynamic> json
)

Implementation

static GroqChatSettings settignsFromJson(Map<String, dynamic> json) {
  return GroqChatSettings(
    temperature: json['temperature'] as double,
    maxTokens: json['max_tokens'] as int,
    topP: json['top_p'] as double,
    stop: json['stop'] as String?,
  );
}