feat(gateway): 이미지 붙은 요청만 vision 모델(Gemma4)로 — 텍스트는 기본 339

Gemma4 가 '안녕' 한 단어에 94s(580 은 188s) 라 텍스트 기본으로는 못 씀.
AAF_FABRIX_VISION_MODEL_ID 가 있으면 messages 에 image_url 파트가 있을 때만 그 모델로 x-llm-model-id 를 바꿈.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
lee-hyeon-cheol
2026-09-18 10:34:55 +09:00
co-authored by Claude Fable 5.1
parent 2b8c2d7742
commit 7ad48732ae
5 changed files with 51 additions and 3 deletions
+4 -2
View File
@@ -19,11 +19,13 @@ CORS_ORIGINS=http://localhost:15173,http://tauri.localhost,tauri://localhost
# ── 사내 LLM(FabriX) — 고객사 전용. 개발(OpenRouter)에선 전부 비워둠 ──
# OpenCode 는 opencode/opencode.json 을 FabriX 용으로 렌더해서(opencode/render_opencode.py) 이 서버의 /api/ito 로 붙음.
AAF_FABRIX_BASE_URL=
AAF_FABRIX_MODEL_ID=605
AAF_FABRIX_MODELS=605:Gemma4,339:GaussO Flash,581:GaussO Think
AAF_FABRIX_MODEL_ID=339
AAF_FABRIX_MODELS=339:GaussO Flash,581:GaussO Think,605:Gemma4
AAF_FABRIX_CLIENT_KEY=
AAF_FABRIX_OPENAPI_TOKEN=
AAF_FABRIX_USER_EMAIL=
# 이미지 붙은 요청만 이 모델로. Gemma4 가 텍스트엔 너무 느려서(안녕 94s vs 339 0.7s) 기본은 339
AAF_FABRIX_VISION_MODEL_ID=605
# 게이트웨이마다 다를 수 있는 것 — 보통 비워둠(401 나면 자동으로 다른 형식도 시도함)
AAF_FABRIX_CLIENT_HEADER=
AAF_FABRIX_TOKEN_PREFIX=bearer