GroqConfig.fromLLMConfig constructor

GroqConfig.fromLLMConfig(
  1. LLMConfig config
)

Create GroqConfig from unified LLMConfig

Implementation

factory GroqConfig.fromLLMConfig(LLMConfig config) {
  return GroqConfig(
    apiKey: config.apiKey!,
    baseUrl: config.baseUrl,
    model: config.model,
    maxTokens: config.maxTokens,
    temperature: config.temperature,
    systemPrompt: config.systemPrompt,
    timeout: config.timeout,
    topP: config.topP,
    topK: config.topK,
    tools: config.tools,
    toolChoice: config.toolChoice,
    originalConfig: config,
  );
}