Spaces:
Running
Running
axeronis commited on
Commit ·
36d26e6
1
Parent(s): 0152a91
fix(backend): downgrade Groq model to 'llama-3.1-8b-instant' to avoid TPD token limits
Browse files
backend/app/services/llm_client.py
CHANGED
|
@@ -37,7 +37,7 @@ class GroqLLMClient:
|
|
| 37 |
api_key=api_key,
|
| 38 |
base_url="https://api.groq.com/openai/v1"
|
| 39 |
)
|
| 40 |
-
self.model = "llama-3.
|
| 41 |
self.ai_queue = get_ai_queue() # Rate limiting queue
|
| 42 |
|
| 43 |
logger.info(f"✅ Groq LLM client initialized (model: {self.model})")
|
|
|
|
| 37 |
api_key=api_key,
|
| 38 |
base_url="https://api.groq.com/openai/v1"
|
| 39 |
)
|
| 40 |
+
self.model = "llama-3.1-8b-instant" # Lighter model with higher limits to avoid 429 errors
|
| 41 |
self.ai_queue = get_ai_queue() # Rate limiting queue
|
| 42 |
|
| 43 |
logger.info(f"✅ Groq LLM client initialized (model: {self.model})")
|