Skip to content

Comments

[REFACTOR/#116] 제미나이 호출 설정 조정 및 적금 추천 개수 조정#118

Merged
lee-si-yeon merged 7 commits intomainfrom
ref/#116-recommendation-prompt-optimize
Feb 19, 2026
Merged

[REFACTOR/#116] 제미나이 호출 설정 조정 및 적금 추천 개수 조정#118
lee-si-yeon merged 7 commits intomainfrom
ref/#116-recommendation-prompt-optimize

Conversation

@lee-si-yeon
Copy link
Collaborator

@lee-si-yeon lee-si-yeon commented Feb 18, 2026

🔗 Related Issue

📝 Summary

제미나이 추천 속도 최적화를 위한 제미나이 호출 설정 조정 및 적금 추천 개수 조정

🔄 Changes

  • API 변경 (추가/수정)
  • 데이터 및 도메인 변경 (DB, 비즈니스 로직)
  • 설정 또는 인프라 관련 변경
  • 리팩토링

💬 Questions & Review Points

📸 API Test Results (Swagger)

✅ Checklist

  • API 테스트 완료
  • 테스트 결과 사진 첨부
  • 빌드 성공 확인 (./gradlew build)

@lee-si-yeon lee-si-yeon self-assigned this Feb 18, 2026
@lee-si-yeon lee-si-yeon added ♻️ refactor 코드 구조 개선 시연 시연 labels Feb 18, 2026
@lee-si-yeon lee-si-yeon linked an issue Feb 18, 2026 that may be closed by this pull request
3 tasks
@gemini-code-assist
Copy link

Summary of Changes

Hello @lee-si-yeon, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

이 PR은 Gemini 기반 적금 추천 기능의 성능 최적화에 중점을 둡니다. 추천되는 적금 상품의 수를 줄이고 Gemini API 호출에 대한 재시도 및 타임아웃 구성을 미세 조정하여 이를 달성합니다. 또한, Gemini API 응답 시간에 대한 수정된 예상치를 포함하여 이러한 변경 사항을 반영하도록 API 문서가 업데이트되었습니다.

Highlights

  • 적금 추천 개수 조정: 사용자에게 제공되는 적금 추천 개수를 15개에서 10개로 줄였습니다.
  • Gemini API 호출 설정 최적화: Gemini API 호출의 최대 재시도 횟수를 줄이고, 시도당 타임아웃 및 전체 마감 시간을 조정하며, 최대 백오프 시간을 변경하여 호출 설정을 최적화했습니다.
  • 새로운 적금 조회 메서드 추가: 여러 상품 코드를 사용하여 한 번에 여러 적금 상품을 조회할 수 있는 새로운 레포지토리 메서드를 추가했습니다.
  • API 문서 업데이트: 추천 개수 변경 및 Gemini API 응답 시간 예상치(37초에서 1020초로) 업데이트를 반영하여 API 문서를 수정했습니다.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • src/main/java/org/umc/valuedi/domain/savings/controller/RecommendationController.java
    • 최신 추천 개수 변경을 반영하도록 주석을 업데이트했습니다.
  • src/main/java/org/umc/valuedi/domain/savings/controller/RecommendationControllerDocs.java
    • 추천 개수 변경 및 Gemini 응답 시간 예상치 업데이트를 반영하여 API 요약, 설명 및 예시 요약을 수정했습니다.
  • src/main/java/org/umc/valuedi/domain/savings/repository/SavingsRepository.java
    • 여러 적금 상품 코드로 여러 저축 엔티티를 가져오는 새 메서드를 추가했습니다.
  • src/main/java/org/umc/valuedi/domain/savings/service/RecommendationService.java
    • RECOMMEND_COUNT 및 CANDIDATE_LIMIT 상수를 줄이고 주석을 업데이트했습니다.
  • src/main/java/org/umc/valuedi/global/external/genai/client/GeminiClient.java
    • 최적화를 위해 Gemini API 호출 재시도 횟수, 시도당 타임아웃, 전체 마감 시간 및 최대 백오프 기간을 조정했습니다.
Activity
  • 이 PR에 대한 활동 내역은 제공되지 않았습니다.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

이 Pull Request는 Gemini API 호출 설정을 최적화하고 적금 추천 개수를 조정하는 변경 사항을 포함합니다. Gemini 호출 시도 횟수, 시도별 타임아웃, 전체 데드라인 및 백오프 시간을 조정하여 응답 속도를 개선하려는 목적이 있습니다. 또한, 추천되는 적금 상품의 개수를 15개에서 10개로 줄였습니다.

@seamooll seamooll changed the title [REFACTOR] 제미나이 호출 설정 조정 및 적금 추천 개수 조정 [REFACTOR/#116] 제미나이 호출 설정 조정 및 적금 추천 개수 조정 Feb 18, 2026
@lee-si-yeon lee-si-yeon added the 🔧 enhancement 기존 기능 개선 label Feb 18, 2026
@lee-si-yeon lee-si-yeon requested a review from seamooll February 18, 2026 20:04
@lee-si-yeon lee-si-yeon merged commit 120c82e into main Feb 19, 2026
1 check passed
@seamooll seamooll deleted the ref/#116-recommendation-prompt-optimize branch February 22, 2026 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

♻️ refactor 코드 구조 개선 시연 시연 🔧 enhancement 기존 기능 개선

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[REFACTOR] 제미나이 추천 속도 최적화

2 participants