fix(ai): flash 모델 기본값을 게이트웨이에 실재하는 gemini-3.5-flash-lite 로 - #229
Merged
Conversation
`gemini-3.1-flash-lite` 는 Mindlogic 게이트웨이 카탈로그에 없어(직접 호출 시 404 "Model not found") Flash 를 쓰는 모든 경로 — 약점추적 꼬리질문, 4축 실시간 채점, 답변별 코칭, 첫인상·인성 평가위원 — 이 프로덕션에서 매번 실패했다. Pro (`gemini-3.1-pro-preview`)는 카탈로그에 있어 질문 풀·피드백 패널은 정상이었다. 게이트웨이가 실제 서빙하는 flash-lite 티어(`gemini-3.5-flash-lite`)로 기본값을 교체. 저지연·저비용 의도 유지. prod `.env` 는 별도로 이미 교체·검증했고, 배포가 `.env` 를 보존하므로 이 커밋은 신규/초기화 배포의 회귀를 막는 목적. - settings.py / .env.example / ai/.env.example / docker-compose.yml fallback - 문서(environment.md, ai/CLAUDE.md, observability.md 예시, api-conventions.md 예시)의 없는 모델명(gemini-3.1-flash·flash-lite) 정리
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
변경 사항
LLM_FLASH_MODEL기본값을gemini-3.1-flash-lite→gemini-3.5-flash-lite로 교체.배경
gemini-3.1-flash-lite는 Mindlogic 게이트웨이 카탈로그에 없는 모델이다(게이트웨이 직접 호출 시404 "Model 'gemini-3.1-flash-lite' not found"). 이 때문에 Flash 를 쓰는 경로가 프로덕션에서 매번 실패했다:"질문 생성에 실패했습니다"nullPro(
gemini-3.1-pro-preview)는 카탈로그에 존재해 질문 풀·피드백 패널은 정상이었다.조치
게이트웨이가 실제 서빙하는 flash-lite 티어(
gemini-3.5-flash-lite)로 기본값 교체. 저지연·저비용 의도 유지. 게이트웨이 직접 호출 + 실제 면접 사이클로 꼬리질문·4축채점·코칭·패널(4명) 복구를 확인했다.settings.py/.env.example/ai/.env.example/docker-compose.ymlfallbackenvironment.md,ai/CLAUDE.md,observability.md·api-conventions.md예시)의 존재하지 않는 모델명(gemini-3.1-flash·flash-lite) 정리배포 노트
프로덕션
.env는 이미 별도로 교체·검증했다. 배포(deploy-app.yml)가rsync --exclude='.env'로 prod.env를 보존하므로, 이 PR 은 신규/초기화 배포 시 회귀를 막는 목적이다.