Fix: [3.0.1] 응답에 video_url/channel_name 포함 + 요약 프롬프트 개선
All checks were successful
news-summary-bot-cicd / build_push_deploy (push) Successful in 15m25s

- API 응답에 video_url, channel_name을 항상 포함 (n8n Switch 이후 사용)
- channel_name 필드를 request body에서 받아 그대로 반환
- 요약 프롬프트: 구체적 수치/사례 포함, 메타 서술 금지, 시청자 액션 제시
- 문서 전체 API 응답 형식 업데이트

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
sm4640
2026-03-25 16:19:15 +09:00
parent b9e1c4fb45
commit f4532840cf
6 changed files with 28 additions and 20 deletions

View File

@@ -74,13 +74,13 @@ OCI 등 클라우드 서버에서는 YouTube가 데이터센터 IP를 봇으로
```json
// 성공
{"status": "ok", "title": "영상 제목", "summary": "요약 텍스트"}
{"video_url": "...", "title": "...", "channel_name": "...", "status": "ok", "summary": "요약 텍스트"}
// 스킵 (라이브/쇼츠)
{"status": "skipped", "title": "영상 제목", "reason": "라이브/예정 영상은 요약 대상이 아닙니다"}
{"video_url": "...", "title": "...", "channel_name": "...", "status": "skipped", "reason": "라이브/예정 영상은 요약 대상이 아닙니다"}
// 에러
{"status": "error", "title": "영상 제목", "error_type": "ValueError", "error_message": "..."}
{"video_url": "...", "title": "...", "channel_name": "...", "status": "error", "error_type": "ValueError", "error_message": "..."}
```
### `GET /api/news/health` (외부) / `GET /health` (내부)