File size: 318 Bytes
429a61a
6af529b
 
 
afee9b9
be8d10c
6af529b
be8d10c
 
9f2782c
be8d10c
1
2
3
4
5
6
7
8
9
10
11
# gunicorn.conf.py
import os

worker_class = 'uvicorn.workers.UvicornWorker'
workers = int(os.environ.get('GUNICORN_WORKERS', '1'))
bind = f"0.0.0.0:{os.environ.get('PORT', '7860')}"

# Timeout should be longer than the longest expected API call (e.g., OpenRouter 180s)
timeout = 200 # 200 seconds

# loglevel = 'info'