Skip to content

fix: LLM 모델을 gemini-3.1-flash-lite로 변경 (신규 프로젝트에서 2.5-lite 404) - #172

Merged
heeun98 merged 1 commit into
mainfrom
feature/PICK-247-llm-mission-generate
Jul 14, 2026
Merged

heeun98 merged 1 commit into
mainfrom
feature/PICK-247-llm-mission-generate

Conversation

@heeun98

@heeun98 heeun98 commented Jul 14, 2026 •

Copy link
Copy Markdown
Collaborator

🛠️ 작업 내용

  • feat: LLM 미션 생성 응답 속도 개선 (thinking 비활성화 + flash-lite 전환) #171 배포 후 운영에서 gemini-2.5-flash-lite 호출이 404("This model is no longer available to new users")로 실패
  • 운영 API 키가 새로 발급된 키(신규 Google 프로젝트)라 구형 2.5-flash-lite 접근이 막힌 것이 원인 (기존 프로젝트 키로는 정상 동작 확인)
  • 신규 프로젝트에도 열려 있는 gemini-3.1-flash-lite로 변경. 기존 요청 형식(responseMimeType JSON, thinkingBudget 0) 호환 및 응답 속도(실측 1.2초) 확인 완료

🎯 리뷰 포인트

  • 모델 고정 vs gemini-flash-lite-latest 별칭: 운영 동작이 조용히 바뀌는 것을 피하려고 버전 고정을 택했습니다
  • 급하면 배포 없이 운영 .env에 GEMINI_MODEL=gemini-3.1-flash-lite 추가 + 컨테이너 recreate로도 즉시 적용 가능합니다

⏳ 작업 시간

  • 추정 시간:
  • 실제 시간:

Summary by CodeRabbit

  • 개선 사항
    • 기본 Gemini 모델을 gemini-3.1-flash-lite로 변경해 최신 모델을 사용하도록 개선했습니다.
    • 모델 선택과 관련된 안내 문구를 최신 설정에 맞게 업데이트했습니다.

- 운영 API 키(신규 Google 프로젝트)에서 gemini-2.5-flash-lite가 'no longer available to new users' 404로 거절됨
- 신규 프로젝트에도 열려 있는 gemini-3.1-flash-lite로 고정, 기존 요청 형식(JSON 모드·thinkingBudget 0) 호환 확인 완료 (실측 1.2초 응답)
@heeun98
heeun98 merged commit a32c3e3 into main Jul 14, 2026
4 of 5 checks passed
@coderabbitai

coderabbitai Bot commented Jul 14, 2026 •

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 51fd786b-1ea7-47cc-bbbf-3fe599f462ba

📥 Commits

Reviewing files that changed from the base of the PR and between b3a4425 and 270c45c.

📒 Files selected for processing (1)
  • peektime-api/src/main/resources/application.yml

📝 Walkthrough

Walkthrough

application.yml의 gemini.model 기본값을 gemini-2.5-flash-lite에서 gemini-3.1-flash-lite로 변경했습니다. 신규 Google 프로젝트에서 기존 모델이 404로 거절될 수 있다는 설명과 3.1 모델을 고정한다는 주석을 추가했으며, 지연 및 품질 관련 주석도 갱신했습니다.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Poem

낡은 모델은 살짝 안녕,
새 플래시가 빛을 내네.
404 문은 닫아두고
설정 한 줄 가볍게 전진!

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/PICK-247-llm-mission-generate

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant