504 Gateway Timeout 근본 원인은 DSM Reverse Proxy의 60s 기본 timeout (agent-office는 200 OK 정상 응답했으나 client 도달 전 DSM이 끊음). 사용자 측 DSM Reverse Proxy timeout 늘리기 별도 필요. 코드 측 대응: - pipeline.py max_tokens 2048 → 1400 (응답 시간 단축, 3-card spread 충분) - pipeline.py에 latency_ms·tokens 로그 출력 (모니터링) - nginx /api/agent-office/에 proxy_send_timeout 300s, proxy_connect_timeout 60s 추가 (proxy_read_timeout은 WebSocket 위해 86400s 유지) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
4.5 KiB
4.5 KiB