苑智奕 commited on
Commit
019aa97
·
1 Parent(s): b6f8db1

Update: Increase timeout to 300s (5 minutes) for more stable AI generation

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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=120.0 # Set a 120-second timeout (2 minutes)
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