llmModelFromJson static method

GroqLLMModel llmModelFromJson(
  1. Map<String, dynamic> json
)

Parses the LLM model information from the json

Implementation

static GroqLLMModel llmModelFromJson(Map<String, dynamic> json) {
  return GroqLLMModel(
    modelId: json['id'] as String,
    ownedBy: json['owned_by'] as String,
    isCurrentlyActive: json['active'] as bool,
    contextWindow: json['context_window'] as int,
  );
}