From aaa090448221da29838f2587753e6fa2ebe2837d Mon Sep 17 00:00:00 2001 From: Ayush Paul Date: Tue, 8 Jul 2025 11:25:21 -0400 Subject: [PATCH] fix groq client (#155) --- src/utils/clients.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils/clients.py b/src/utils/clients.py index 1fc76093..b8cb6a0f 100644 --- a/src/utils/clients.py +++ b/src/utils/clients.py @@ -1,12 +1,12 @@ from anthropic import AsyncAnthropic from google import genai -from groq import Groq +from groq import AsyncGroq from openai import AsyncOpenAI from src.config import settings from src.utils.types import Providers -clients: dict[Providers, AsyncAnthropic | AsyncOpenAI | genai.Client | Groq] = {} +clients: dict[Providers, AsyncAnthropic | AsyncOpenAI | genai.Client | AsyncGroq] = {} if settings.LLM.ANTHROPIC_API_KEY: anthropic = AsyncAnthropic(api_key=settings.LLM.ANTHROPIC_API_KEY) @@ -29,5 +29,5 @@ if settings.LLM.GEMINI_API_KEY: clients["google"] = google if settings.LLM.GROQ_API_KEY: - groq = Groq(api_key=settings.LLM.GROQ_API_KEY) + groq = AsyncGroq(api_key=settings.LLM.GROQ_API_KEY) clients["groq"] = groq