Skip to content

feat: 리포트 LLM에 멀티 프로바이더 라우팅 적용 및 2-pass rewrite 설계#102

Merged
1Seob merged 7 commits intodevelopfrom
feat/ai-model
Feb 14, 2026
Merged

feat: 리포트 LLM에 멀티 프로바이더 라우팅 적용 및 2-pass rewrite 설계#102
1Seob merged 7 commits intodevelopfrom
feat/ai-model

Conversation

@1Seob
Copy link
Collaborator

@1Seob 1Seob commented Feb 14, 2026

📝 요약(Summary)

멀티 LLM 호출을 위한 공용 라우팅 레이어 추가

  • LlmProvider enum 추가
  • LlmRouter 추가 (provider → ChatClient 매핑)

프로바이더별 ChatClient를 명시적으로 구성

  • OpenAiChatModel / AnthropicChatModel / (Google)GeminiChatModel 기반으로 ChatClient Bean 생성

WeeklyReportLlmClient에서 provider 기반으로 options 분기 호출

  • 기존: OpenAi만 사용
  • 현재: Claude와 Gemini를 사용

2-pass rewrite 설계

  • 모델 변경 이후 WeeklyReport 생성 시 LLM 응답이 글자수 제한을 자주 초과하는 문제를 해결하기 위해 2-pass(생성 → 리라이트) 흐름을 도입
  • 1차 생성은 Gemini(2.5 FLASH)로 수행하고, discovered/improve가 최대 글자수를 넘는 경우에만 Claude(3 Haiku)로 해당 필드만 리라이트

🔗 Related Issue

  • Closes:

💬 공유사항

✅ PR Checklist

PR이 다음 요구 사항을 충족하는지 확인하세요.

  • PR 제목을 커밋 메시지 컨벤션에 맞게 작성했습니다.

@coldsunn
Copy link
Collaborator

LGTM!

@1Seob 1Seob merged commit 13a141f into develop Feb 14, 2026
1 check passed
@1Seob 1Seob deleted the feat/ai-model branch February 14, 2026 15:46
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.

2 participants