-
Notifications
You must be signed in to change notification settings - Fork 0
[#28] Gemini prediction 요청 안정성과 입력 크기 제한을 구성한다 #29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
53a5ebd
refactor: api 호출 안정성을 위해 직렬화
opficdev e9e34c4
refactor: AI prediction 호출 대상 제한
opficdev 21843fd
fix: Gemini 일시 실패 retry 구성
opficdev 33c8f21
fix: confirmed conflict AI prediction 제외
opficdev f5eff03
fix: AI prediction 응답 계약 강화
opficdev bc70446
fix: Gemini quota 오류 요약
opficdev 9c487a3
fix: AI prediction 호출 간격 추가
opficdev a309940
fix: AI prediction skip reason 정리
opficdev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,17 +1,17 @@ | ||
| import type { | ||
| AiPredictionEvidencePayload, | ||
| AiPredictionTargetSelectionOptions | ||
| AiPredictionEvidencePayload | ||
| } from "./types.js" | ||
| import { BranchRiskStatus } from "../risks/types.js" | ||
|
|
||
| // medium 이상 possibility를 기본 AI prediction 대상으로 삼기 위한 최소 score | ||
| export const DEFAULT_AI_PREDICTION_MINIMUM_SCORE = 25 | ||
| // Gemini 호출량을 줄이기 위해 기본 AI prediction 대상은 critical possibility로 제한 | ||
| export const DEFAULT_AI_PREDICTION_TARGET_STATUS = BranchRiskStatus.Critical | ||
|
|
||
| // deterministic possibility score 기준으로 AI prediction 대상 evidence만 선택 | ||
| // deterministic possibility status 기준으로 AI prediction 대상 evidence만 선택 | ||
| export function select( | ||
| payloads: AiPredictionEvidencePayload[], | ||
| options: AiPredictionTargetSelectionOptions = {} | ||
| payloads: AiPredictionEvidencePayload[] | ||
| ): AiPredictionEvidencePayload[] { | ||
| const minimumScore = options.minimumScore ?? DEFAULT_AI_PREDICTION_MINIMUM_SCORE | ||
|
|
||
| return payloads.filter(payload => minimumScore <= payload.possibility.score) | ||
| return payloads.filter(payload => | ||
| payload.possibility.status === DEFAULT_AI_PREDICTION_TARGET_STATUS && | ||
| !payload.possibility.reasons.some(reason => reason.code === "confirmed_conflict") | ||
| ) | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.