Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -354,12 +354,12 @@ Respond with the JSON object only."""
|
|
| 354 |
# FIX: retry up to 3 times — 105b occasionally returns null content
|
| 355 |
for attempt in range(3):
|
| 356 |
response = client.chat.completions(
|
| 357 |
-
model="sarvam-
|
| 358 |
messages=[{"role": "user", "content": prompt}],
|
| 359 |
reasoning_effort=None,
|
| 360 |
temperature=0,
|
| 361 |
top_p=1,
|
| 362 |
-
max_tokens=
|
| 363 |
)
|
| 364 |
|
| 365 |
# FIX: guard against null content before calling .strip()
|
|
|
|
| 354 |
# FIX: retry up to 3 times — 105b occasionally returns null content
|
| 355 |
for attempt in range(3):
|
| 356 |
response = client.chat.completions(
|
| 357 |
+
model="sarvam-105b",
|
| 358 |
messages=[{"role": "user", "content": prompt}],
|
| 359 |
reasoning_effort=None,
|
| 360 |
temperature=0,
|
| 361 |
top_p=1,
|
| 362 |
+
max_tokens=4096,
|
| 363 |
)
|
| 364 |
|
| 365 |
# FIX: guard against null content before calling .strip()
|