Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -143,9 +143,10 @@ def generate_groq_response(prompt: str) -> str:
|
|
| 143 |
{"role": "user", "content": prompt}
|
| 144 |
],
|
| 145 |
"temperature": 0.0,
|
| 146 |
-
"max_tokens": 2048
|
| 147 |
-
"tool_choice": "none"
|
| 148 |
}
|
|
|
|
| 149 |
|
| 150 |
for attempt in range(MAX_RETRIES + 1):
|
| 151 |
try:
|
|
|
|
| 143 |
{"role": "user", "content": prompt}
|
| 144 |
],
|
| 145 |
"temperature": 0.0,
|
| 146 |
+
"max_tokens": 2048
|
| 147 |
+
# Removed "tool_choice": "none" to prevent Groq API validation rejections
|
| 148 |
}
|
| 149 |
+
|
| 150 |
|
| 151 |
for attempt in range(MAX_RETRIES + 1):
|
| 152 |
try:
|