Skip to content

[#32] AI prediction provider를 OpenAI GPT-5.4 mini로 교체한다#33

Merged
opficdev merged 5 commits into
developfrom
refactor/#32-openAi
Jun 23, 2026
Merged

[#32] AI prediction provider를 OpenAI GPT-5.4 mini로 교체한다#33
opficdev merged 5 commits into
developfrom
refactor/#32-openAi

Conversation

@opficdev

Copy link
Copy Markdown
Owner

🔗 연관된 이슈

🎯 의도

  • Gemini API의 free tier 한도와 503/429 응답으로 인해 prediction 실행 안정성이 낮아진 문제를 줄이기 위한 기본 AI provider 전환

📝 작업 내용

📌 요약

  • OpenAI Responses API 기반 prediction client 추가
  • 기본 AI provider를 Gemini에서 OpenAI로 전환
  • Gemini prediction provider와 관련 테스트 제거
  • consumer workflow와 문서를 OPENAI_API_KEY 기준으로 정리

🔍 상세

  • OpenAiPredictionClient 추가
  • gpt-5.4-mini 기본 model 설정
  • OpenAI structured output schema 기반 batch prediction 요청 구성
  • OpenAI 응답의 output_textoutput.content.text JSON 추출 처리
  • OpenAI API 실패 응답의 error detail 길이 제한 처리
  • createDefaultAiPredictionClient 기본 구현을 OpenAI provider로 변경
  • reusable workflow secret을 openai_api_key / OPENAI_API_KEY 기준으로 변경
  • docs/examples/consumer-merge-risk-watch.yml consumer 예시를 OpenAI secret 기준으로 변경
  • README의 AI provider, local 실행, 실서비스 연결 전 테스트, troubleshooting 문구를 OpenAI 기준으로 수정
  • Gemini provider source와 Gemini provider test 제거
  • OpenAI provider request body, schema, 실패 응답, empty response 테스트 추가

@opficdev opficdev self-assigned this Jun 23, 2026

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

본 풀 리퀘스트는 기존 Gemini API 연동을 OpenAI Responses API 연동으로 전환하며, 관련 설정 키, 클라이언트 구현체, 문서 및 테스트 코드를 전반적으로 업데이트합니다. 리뷰 피드백으로는 존재하지 않는 모델명인 gpt-5.4-minigpt-4o-mini 등 실제 존재하는 모델로 수정할 것과, OpenAI 에러 응답 발생 시 원문 JSON 대신 error.message만 파싱하여 로그 가독성을 개선할 것을 제안했습니다.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread src/ai/openAiPredictionClient.ts
Comment thread src/ai/openAiPredictionClient.ts
@opficdev opficdev merged commit 14ce040 into develop Jun 23, 2026
3 checks passed
@opficdev opficdev deleted the refactor/#32-openAi branch June 23, 2026 16:14
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.

AI prediction provider를 OpenAI GPT-5.4 mini로 교체한다

1 participant