Conversation
문자 메시지의 어조와 근거를 분석해 위험도를 판정하는 Gemini 연동을 추가하고, /analyze 엔드포인트가 이를 사용하도록 연결. API 실패 시 SAFE로 오탐되지 않도록 fail-closed(UNKNOWN 등급) 정책을 적용하고, 채점 재현성을 위해 temperature를 낮춤. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This reverts commit 6b60069.
문자 메시지의 어조와 근거를 분석해 위험도를 판정하는 Gemini 연동을 추가하고, /analyze 엔드포인트가 이를 사용하도록 연결. API 실패 시 SAFE로 오탐되지 않도록 fail-closed(UNKNOWN 등급) 정책을 적용하고, 채점 재현성을 위해 temperature를 낮춤. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
feat: Gemini 기반 문자 어조/근거 분석 파이프라인 추가
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (7)
📝 WalkthroughWalkthroughAdds Gemini-backed SMS text analysis with mock fixtures, risk grading, fail-closed error handling, a validated ChangesGemini text analysis flow
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant Client
participant AnalyzeEndpoint
participant GeminiAnalyzer
participant MockProvider
participant GeminiAPI
Client->>AnalyzeEndpoint: POST /analyze with message
AnalyzeEndpoint->>GeminiAnalyzer: analyze_text_with_gemini(message)
alt Mock mode
GeminiAnalyzer->>MockProvider: get_mock_text_analysis_data(message)
MockProvider-->>GeminiAnalyzer: mocked analysis
else Gemini mode
GeminiAnalyzer->>GeminiAPI: generateContent request
GeminiAPI-->>GeminiAnalyzer: structured analysis JSON
end
GeminiAnalyzer-->>AnalyzeEndpoint: normalized result
AnalyzeEndpoint-->>Client: text_analysis and smishing_detected
Possibly related PRs
Suggested labels: Suggested reviewers: ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
kite-pp
added a commit
that referenced
this pull request
Jul 17, 2026
Merge pull request #14 from SafeFam/main
This was referenced Jul 19, 2026
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.
📝 개요
🔗 관련 이슈
🎯 주요 변경 사항
📸 사진
✅ PR 체크리스트
uvicorn구동 또는 테스트 코드)를 통과했습니다.Summary by CodeRabbit
New Features
/analyzeendpoint.Documentation
Tests