Skip to content

[REFACTOR] gemini 기반 yml 수정#143

Merged
beans3142 merged 1 commit intodevfrom
refactor/#140_AImodelchange
Aug 20, 2025
Merged

[REFACTOR] gemini 기반 yml 수정#143
beans3142 merged 1 commit intodevfrom
refactor/#140_AImodelchange

Conversation

@beans3142
Copy link
Contributor

@beans3142 beans3142 commented Aug 20, 2025

🎋 이슈 및 작업중인 브랜치

🔑 주요 내용

  • gemini 관련 yml 수정

Check List

  • Reviewers 등록을 하였나요?
  • Assignees 등록을 하였나요?
  • 라벨(Label) 등록을 하였나요?
  • PR 머지하기 전 반드시 CI가 정상적으로 작동하는지 확인해주세요!

Summary by CodeRabbit

  • Chores
    • 외부 AI 제공자를 교체하고 최신 모델로 전환했습니다.
    • 이에 따라 응답 속도, 비용 효율성, 출력 스타일이 변경될 수 있습니다.
    • 기존 기능은 그대로 사용 가능하며 중단 없이 동작합니다.
    • 설정 이외의 다른 항목은 변경되지 않았습니다.
    • 엔드유저는 새 모델의 답변 특성을 경험하게 됩니다.
    • 서비스 엔드포인트 변경은 내부적으로 처리되며 추가 조치가 필요 없습니다.

@beans3142 beans3142 requested a review from parkmineum August 20, 2025 16:58
@beans3142 beans3142 self-assigned this Aug 20, 2025
@beans3142 beans3142 added the ♻️ REFACTOR 리팩토링 관련 라벨 label Aug 20, 2025
@coderabbitai
Copy link

coderabbitai bot commented Aug 20, 2025

Walkthrough

application.yml에서 외부 API 설정의 상위 키를 openai에서 gemini로 변경했습니다. API 자격 증명과 엔드포인트를 OPEN_AI_KEY에서 GEMINI_API_KEY로, URL을 https://api.openai.com/v1에서 https://generativelanguage.googleapis.com로, 모델을 gpt-4o-mini에서 gemini-1.5-flash로 교체했습니다. 기타 설정 항목은 변경되지 않았습니다.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Tip

🔌 Remote MCP (Model Context Protocol) integration is now available!

Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats.

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch refactor/#140_AImodelchange

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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

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

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@beans3142 beans3142 requested a review from answjddn0607 August 20, 2025 16:59
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (2)
src/main/resources/application.yml (2)

96-96: Base URL에 API 버전 세그먼트 포함 권장

엔드포인트 버전을 URL에 명시하면 업그레이드/롤백이 쉬워집니다.

아래처럼 /v1beta(또는 조직 정책에 맞는 안정 채널) 포함을 제안드립니다.

-    url: https://generativelanguage.googleapis.com
+    url: https://generativelanguage.googleapis.com/v1beta

97-97: 모델 ID 및 엔드포인트 버전 검토 (src/main/resources/application.yml:97)

  • 프로덕션 환경에서는 안정된 /v1 엔드포인트 사용을 명시하세요.
  • 가능하다면 Gemini 2.x 최신 안정 모델(예: gemini-2.0-flash)로 마이그레이션을 권장합니다.
  • 불가피하게 1.5 계열을 계속 사용해야 할 경우:
    • 재현성·롤백이 중요하면 gemini-1.5-flash-002 등 특정 패치 버전 명시
    • 자동 최신화가 필요하면 gemini-1.5-flash alias 사용 (-latest 접미사 공식 권장 아님)

위 권장 사항을 검토 후 application.yml에 반영해주세요.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled
  • Linear integration is disabled

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between ac9893b and f0b2f2f.

📒 Files selected for processing (1)
  • src/main/resources/application.yml (1 hunks)
🔇 Additional comments (4)
src/main/resources/application.yml (4)

93-97: Gemini 전환 자체는 깔끔합니다.

키 네이밍과 계층 구조가 일관적이고, 모델/URL/키 구성이 명확합니다.


95-97: 인증 방식 변경 확인 완료
Gemini API용 x-goog-api-key 헤더 설정이 GeminiClientConfig.java(22번 줄)에 적용되어 있으며, Bearer 토큰 설정(setBearerAuth/Authorization: Bearer)이나 OpenAI 엔드포인트(api.openai.com) 호출은 코드상에 남아있지 않음을 확인했습니다.

→ 해당 부분은 해결되었습니다.


93-97: openai → gemini 키 경로 변경 전역 점검 요청
스크립트 실행 결과, 코드베이스에서


  • openai 설정 경로 및 바인딩(@ConfigurationProperties(prefix="openai"))
  • openai.api.* 혹은 gpt-4 참조
  • 새 경로 gemini.api.* 사용처
    를 모두 찾지 못했습니다.

누락된 참조가 없는지 아래 사항을 직접 재확인해 주세요:

  • @value 또는 Environment.getProperty 등으로 주입하는 모든 설정 키
  • 테스트용 리소스(yml, properties)
  • CI/CD 파이프라인 및 배포 스크립트 내 환경 변수 설정

95-95: GEMINI_API_KEY 시크릿 설정 및 인프라 반영 필수

src/main/resources/application.yml (95행)에만
key: ${GEMINI_API_KEY} 참조가 있습니다.
– 코드베이스에서 더 이상 OPEN_AI_KEY 사용은 확인되지 않았습니다.

인프라 리소스(Terraform/GitHub Actions/Kubernetes Secret 등)에 새 환경 변수(GEMINI_API_KEY)가 모두 반영되었는지 수동으로 반드시 검증해주세요.
필요 시 기존 OPEN_AI_KEY 시크릿 폐기 및 키 로테이션도 함께 진행하시길 권장드립니다.

@beans3142 beans3142 merged commit d998ab3 into dev Aug 20, 2025
3 checks passed
@jaemin0413 jaemin0413 deleted the refactor/#140_AImodelchange branch August 27, 2025 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

♻️ REFACTOR 리팩토링 관련 라벨

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants