苑智奕
commited on
Commit
·
019aa97
1
Parent(s):
b6f8db1
Update: Increase timeout to 300s (5 minutes) for more stable AI generation
Browse files
app.py
CHANGED
|
@@ -56,7 +56,7 @@ async def proxy_deepseek(request: Request):
|
|
| 56 |
DEEPSEEK_ENDPOINT,
|
| 57 |
json=body, # Forward the body from the frontend
|
| 58 |
headers=headers,
|
| 59 |
-
timeout=
|
| 60 |
)
|
| 61 |
|
| 62 |
# Check if DeepSeek returned an error
|
|
|
|
| 56 |
DEEPSEEK_ENDPOINT,
|
| 57 |
json=body, # Forward the body from the frontend
|
| 58 |
headers=headers,
|
| 59 |
+
timeout=300.0 # Set a 300-second timeout (5 minutes)
|
| 60 |
)
|
| 61 |
|
| 62 |
# Check if DeepSeek returned an error
|