feat(backend): 스트림 타임아웃 env 화 — 첫 이벤트 300s, FabriX 조각 간 300s 기본

Gemma4 가 큐 밀리면 '안녕'에도 200초라 첫 이벤트 60s 로는 no-events 로 잘림.
STREAM_FIRST_EVENT_TIMEOUT_S / STREAM_TURN_TIMEOUT_S / AAF_FABRIX_READ_TIMEOUT_S / AAF_FABRIX_TOTAL_TIMEOUT_S 를 .env 로.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
lee-hyeon-cheol
2026-09-21 13:31:00 +09:00
co-authored by Claude Fable 5.1
parent e9e644b15b
commit aa37cef13d
5 changed files with 20 additions and 3 deletions
+7
View File
@@ -16,6 +16,10 @@ DB_SCHEMA=codeassist
# 프론트 origin (dev 는 Vite proxy 라 안 탐. Tauri 빌드용)
CORS_ORIGINS=http://localhost:15173,http://tauri.localhost,tauri://localhost
# 채팅 스트림 타임아웃(초) — Gemma4 느릴 때 올림. 첫 이벤트까지 / 한 턴 전체
STREAM_FIRST_EVENT_TIMEOUT_S=300
STREAM_TURN_TIMEOUT_S=600
# ── 사내 LLM(FabriX) — 고객사 전용. 개발(OpenRouter)에선 전부 비워둠 ──
# OpenCode 는 opencode/opencode.json 을 FabriX 용으로 렌더해서(opencode/render_opencode.py) 이 서버의 /api/ito 로 붙음.
AAF_FABRIX_BASE_URL=
@@ -31,6 +35,9 @@ AAF_FABRIX_CLIENT_HEADER=
AAF_FABRIX_TOKEN_PREFIX=bearer
AAF_FABRIX_MAX_TOKENS=
AAF_RELAY_STREAM_USAGE=
# FabriX 스트림 타임아웃(초) — 조각 사이 무수신 / 전체. 기본 300 / 600
AAF_FABRIX_READ_TIMEOUT_S=300
AAF_FABRIX_TOTAL_TIMEOUT_S=600
# OpenCode → 이 서버 사이 잠금. 같은 PC 안이면 비워도 됨. 서버를 바깥에 열면 반드시 랜덤 문자열
AAF_GATEWAY_KEY=
# OpenCode 가 붙을 이 서버 포트 (render_opencode.py 가 씀)