mirror of
https://github.com/hwanny1128/HGZero.git
synced 2026-06-13 01:19:11 +00:00
ai-python 포트 8087 완전 통일 및 meeting-ai 테스트 완료
[포트 통일] - ai-python 서비스 포트를 8087로 완전 통일 - 모든 문서에서 8086 참조 제거 - README.md, 개발 가이드 문서 전부 8087로 업데이트 변경 파일: - ai-python/README.md - develop/dev/ai-frontend-integration-guide.md - develop/dev/dev-*.md (5개 파일) [meeting-ai 테스트] 테스트 완료 항목: ✓ 회의록 통합 및 취합 ✓ AI 한줄 요약/상세 요약 생성 ✓ 회의 전체 결정사항 추출 ✓ TODO 자동 추출 (9개) ✓ 통계 정보 생성 ✓ 주요 키워드 추출 (10개) 테스트 파일: - develop/test/meeting-ai-test-data.json (테스트 데이터) - develop/test/consolidate-response.json (API 응답) - develop/test/meeting-ai-test-result.md (상세 결과서)
This commit is contained in:
@@ -188,7 +188,7 @@ eventSource.addEventListener('ping', (event) => {
|
||||
**확인 방법**
|
||||
```bash
|
||||
# 터미널에서 직접 테스트
|
||||
curl -N http://localhost:8086/api/ai/suggestions/meetings/test-meeting-001/stream
|
||||
curl -N http://localhost:8087/api/v1/ai/suggestions/meetings/test-meeting-001/stream
|
||||
```
|
||||
|
||||
**해결**
|
||||
|
||||
@@ -34,7 +34,7 @@ GET /api/v1/ai/suggestions/meetings/{meetingId}/stream
|
||||
### 예시
|
||||
```
|
||||
# Python (새 버전)
|
||||
http://localhost:8086/api/v1/ai/suggestions/meetings/550e8400-e29b-41d4-a716-446655440000/stream
|
||||
http://localhost:8087/api/v1/ai/suggestions/meetings/550e8400-e29b-41d4-a716-446655440000/stream
|
||||
|
||||
# Java (구 버전 - 사용 중단 예정)
|
||||
http://localhost:8083/api/suggestions/meetings/550e8400-e29b-41d4-a716-446655440000/stream
|
||||
@@ -90,7 +90,7 @@ interface SimpleSuggestionDto {
|
||||
const meetingId = '550e8400-e29b-41d4-a716-446655440000';
|
||||
|
||||
// SSE 연결 (Python 버전)
|
||||
const apiUrl = `http://localhost:8086/api/v1/ai/suggestions/meetings/${meetingId}/stream`;
|
||||
const apiUrl = `http://localhost:8087/api/v1/ai/suggestions/meetings/${meetingId}/stream`;
|
||||
const eventSource = new EventSource(apiUrl);
|
||||
|
||||
// 연결 성공
|
||||
@@ -194,7 +194,7 @@ export function useAiSuggestions(meetingId: string) {
|
||||
const [error, setError] = useState<Error | null>(null);
|
||||
|
||||
useEffect(() => {
|
||||
const apiUrl = `http://localhost:8086/api/v1/ai/suggestions/meetings/${meetingId}/stream`;
|
||||
const apiUrl = `http://localhost:8087/api/v1/ai/suggestions/meetings/${meetingId}/stream`;
|
||||
const eventSource = new EventSource(apiUrl);
|
||||
|
||||
eventSource.onopen = () => {
|
||||
@@ -264,7 +264,7 @@ function MeetingPage({ meetingId }: { meetingId: string }) {
|
||||
### 5.1 개발 환경
|
||||
```javascript
|
||||
// Python 버전 (권장)
|
||||
const API_BASE_URL = 'http://localhost:8086';
|
||||
const API_BASE_URL = 'http://localhost:8087';
|
||||
|
||||
// Java 버전 (구버전 - 사용 중단 예정)
|
||||
// const API_BASE_URL = 'http://localhost:8083';
|
||||
@@ -440,7 +440,7 @@ open http://localhost:8000/05-회의진행.html
|
||||
### 10.3 curl 테스트
|
||||
```bash
|
||||
# Python 버전 (새 포트)
|
||||
curl -N http://localhost:8086/api/v1/ai/suggestions/meetings/test-meeting/stream
|
||||
curl -N http://localhost:8087/api/v1/ai/suggestions/meetings/test-meeting/stream
|
||||
|
||||
# Java 버전 (구 포트 - 사용 중단 예정)
|
||||
# curl -N http://localhost:8083/api/suggestions/meetings/550e8400-e29b-41d4-a716-446655440000/stream
|
||||
|
||||
@@ -83,21 +83,21 @@ ai-python/
|
||||
$ ./start.sh
|
||||
======================================
|
||||
AI Service (Python) 시작
|
||||
Port: 8086
|
||||
Port: 8087
|
||||
======================================
|
||||
✅ FastAPI 서버 정상 시작
|
||||
```
|
||||
|
||||
### 2. 헬스 체크
|
||||
```bash
|
||||
$ curl http://localhost:8086/health
|
||||
$ curl http://localhost:8087/health
|
||||
{"status":"healthy","service":"AI Service (Python)"}
|
||||
✅ 헬스 체크 정상
|
||||
```
|
||||
|
||||
### 3. SSE 스트리밍 테스트
|
||||
```bash
|
||||
$ curl -N http://localhost:8086/api/v1/ai/suggestions/meetings/test-meeting/stream
|
||||
$ curl -N http://localhost:8087/api/v1/ai/suggestions/meetings/test-meeting/stream
|
||||
✅ SSE 연결 성공
|
||||
✅ Redis 연결 성공
|
||||
✅ 5초마다 텍스트 축적 확인 정상 동작
|
||||
@@ -105,7 +105,7 @@ $ curl -N http://localhost:8086/api/v1/ai/suggestions/meetings/test-meeting/stre
|
||||
|
||||
### 4. 로그 확인
|
||||
```
|
||||
2025-10-27 11:18:54,916 - AI Service (Python) 시작 - Port: 8086
|
||||
2025-10-27 11:18:54,916 - AI Service (Python) 시작 - Port: 8087
|
||||
2025-10-27 11:18:54,916 - Claude Model: claude-3-5-sonnet-20241022
|
||||
2025-10-27 11:18:54,916 - Redis: 20.249.177.114:6379
|
||||
2025-10-27 11:19:13,213 - SSE 스트림 시작 - meetingId: test-meeting
|
||||
@@ -130,7 +130,7 @@ $ curl -N http://localhost:8086/api/v1/ai/suggestions/meetings/test-meeting/stre
|
||||
┌─────────────────────────┐
|
||||
│ AI Service (Python) │
|
||||
│ - FastAPI │
|
||||
│ - Port: 8086 │
|
||||
│ - Port: 8087 │
|
||||
│ - SSE 스트리밍 │
|
||||
└──────┬──────────────────┘
|
||||
│ Redis 조회
|
||||
@@ -232,7 +232,7 @@ python3 main.py
|
||||
**SSE 연결 예시 (JavaScript)**:
|
||||
```javascript
|
||||
const eventSource = new EventSource(
|
||||
'http://localhost:8086/api/v1/ai/suggestions/meetings/meeting-123/stream'
|
||||
'http://localhost:8087/api/v1/ai/suggestions/meetings/meeting-123/stream'
|
||||
);
|
||||
|
||||
eventSource.addEventListener('ai-suggestion', (event) => {
|
||||
|
||||
@@ -131,7 +131,7 @@ function connectAISuggestions(meetingId) {
|
||||
}
|
||||
|
||||
function connectRealAISuggestions(meetingId) {
|
||||
const url = `http://localhost:8086/api/v1/ai/suggestions/meetings/${meetingId}/stream`;
|
||||
const url = `http://localhost:8087/api/v1/ai/suggestions/meetings/${meetingId}/stream`;
|
||||
const eventSource = new EventSource(url);
|
||||
|
||||
eventSource.addEventListener('ai-suggestion', handleAISuggestion);
|
||||
@@ -165,7 +165,7 @@ function handleAISuggestion(event) {
|
||||
REACT_APP_USE_MOCK_AI=true
|
||||
|
||||
# 실제 AI 서비스 URL (STT 완료 후)
|
||||
REACT_APP_AI_SERVICE_URL=http://localhost:8086
|
||||
REACT_APP_AI_SERVICE_URL=http://localhost:8087
|
||||
```
|
||||
|
||||
### `package.json` 스크립트
|
||||
|
||||
@@ -53,7 +53,7 @@
|
||||
↓
|
||||
┌──────────────────────────────────────────────────────────┐
|
||||
│ AI Service (Python/FastAPI) │
|
||||
│ 포트: 8086 │
|
||||
│ 포트: 8087 │
|
||||
│ - Event Hub에서 텍스트 수신 │
|
||||
│ - Redis에 텍스트 축적 (슬라이딩 윈도우 5분) │
|
||||
│ - Claude API 분석 → SSE로 프론트엔드 전송 │
|
||||
|
||||
Reference in New Issue
Block a user