Spaces:
Running
Running
GitHub Actions commited on
Commit ·
96f6a80
1
Parent(s): 8799f6e
🚀 Automated sync from GitHub
Browse files- src/managers.py +3 -3
src/managers.py
CHANGED
|
@@ -15,8 +15,8 @@ class GroqManager:
|
|
| 15 |
self.api_key = api_key
|
| 16 |
# Initialize the Groq client
|
| 17 |
self.client = Groq(api_key=self.api_key) if self.api_key else None
|
| 18 |
-
# Using Llama 3.
|
| 19 |
-
self.model_flash = "llama-3.
|
| 20 |
self.last_used_model = "Idle"
|
| 21 |
|
| 22 |
if self.client:
|
|
@@ -24,7 +24,7 @@ class GroqManager:
|
|
| 24 |
|
| 25 |
def generate_fast(self, prompt):
|
| 26 |
if not self.client: raise Exception("Groq API Key not found.")
|
| 27 |
-
self.last_used_model = "Llama 3.
|
| 28 |
|
| 29 |
# Groq uses the standard chat completions structure
|
| 30 |
chat_completion = self.client.chat.completions.create(
|
|
|
|
| 15 |
self.api_key = api_key
|
| 16 |
# Initialize the Groq client
|
| 17 |
self.client = Groq(api_key=self.api_key) if self.api_key else None
|
| 18 |
+
# Using Llama 3.3 70B for better translation quality
|
| 19 |
+
self.model_flash = "llama-3.3-70b-versatile"
|
| 20 |
self.last_used_model = "Idle"
|
| 21 |
|
| 22 |
if self.client:
|
|
|
|
| 24 |
|
| 25 |
def generate_fast(self, prompt):
|
| 26 |
if not self.client: raise Exception("Groq API Key not found.")
|
| 27 |
+
self.last_used_model = "Llama 3.3 70B (Groq)"
|
| 28 |
|
| 29 |
# Groq uses the standard chat completions structure
|
| 30 |
chat_completion = self.client.chat.completions.create(
|