Fix/ai 요청 api url 출력으로 변경#159
Hidden character warning
Conversation
…o fix/ai-요청-api-바이너리-리퀘스트로-변경
|
Caution Review failedThe pull request is closed. WalkthroughAI 서버 응답을 바이트 배열에서 URL DTO(AiResponseDTO)로 전환했다. WebClient 요청 본문을 MultipartBodyBuilder로 재구성하고, 응답 파이프라인을 DTO 기반으로 수정했다. 스토리지 업로드 단계는 제거되었으며, 새 DTO 클래스 AiResponseDTO가 추가되었다. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor Client as Caller
participant Svc as ImageProcessingService
participant AI as AI Server
Client->>Svc: processImageWithAi(imageBytes, filename, contentType)
Note right of Svc: MultipartBodyBuilder로<br/>ByteArrayResource 생성
Svc->>AI: POST /process (multipart/form-data)
AI-->>Svc: 200 OK + AiResponseDTO{imageUrl}
alt imageUrl 유효
Svc-->>Client: imageUrl 반환
else 누락/에러
Svc-->>Client: fallback 처리/에러
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
Tip 🔌 Remote MCP (Model Context Protocol) integration is now available!Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats. 📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 💡 Knowledge Base configuration:
You can enable these sources in your CodeRabbit configuration. 📒 Files selected for processing (2)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
Fix/ai 요청 api 스트링 출력으로 변경
Summary by CodeRabbit
• Refactor
• AI 이미지 처리 결과를 바이트 전송·스토리지 업로드 대신 AI 서버의 최종 이미지 URL로 직접 반환하도록 전환해 결과 접근성을 높이고 응답 흐름을 단순화했습니다.
• 원본 파일명과 콘텐츠 타입을 보존해 전송 신뢰성을 개선했습니다.
• URL 기반 응답 검증으로 오류 메시지와 로그 가독성을 개선했습니다.
• 이미지 생성 후 결과 링크 수신이 더 일관되고 빠르게 제공됩니다.
• 기존 기능과 호환성을 유지했습니다.