Repository navigation
feat: AI 추천 설명과 배포 시 OpenAI 키 영구 주입 - #195
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
추천 근거를 짧은 한국어 문장으로 생성하고, 다른 변경이 main에 머지되어 재배포될 때도 OpenAI 키가 유지되도록 배포 경로를 구성합니다.
items[].explanation및 기존 첫 추천 이유 메시지로 반환합니다. 재조회/동일 입력에는 재호출하지 않고, 제한 시간·API 오류·잘못된 응답에는 기본 문구를 사용합니다.OPENAI_API_KEY저장소 Secret을 매 배포의 환경 파일에 주입하며 PROD_ENV의 이전 값보다 우선합니다. 시크릿 누락은 기존 서버 변경 전에 차단하고, 배포 전후 컨테이너에서도 값 출력 없이 키 존재를 검사합니다. 반복 배포·교체·누락 검증을 CI와 Deploy에 추가했습니다.검증:
./gradlew test bootJar성공(616개 통과, 조건부 테스트 3개 제외), 배포 환경 회귀 테스트 4개 통과, YAML 구문 및 diff 확인 완료.운영 설정: 저장소 Secret 등록은 완료했습니다. 실제 API 검증은
429 credit_balance_exhausted로 차단되어 모델의 실제 생성 결과는 확인하지 못했습니다. API 크레딧을 충전하기 전에는 기본 설명으로 동작합니다. 키 값은 코드/이미지/로그에 포함하지 않습니다.