Skip to content

Conversation

@brothergiven
Copy link
Contributor

@brothergiven brothergiven commented Nov 16, 2025

refact: AI 서버 구조 개편에 따른 리팩토링

📝 개요

(GotchaAI/BE-AI-SERVER#12) 의 변경사항에 따른 코드 수정 입니다.


⚙️ 구현 내용


📎 기타

기존 Spring 서버에 #62 작성되어 있던 S3 이미지 업로드 코드를 AI 서버로 옮겼습니다.

기존의 경우 원본 이미지를 Spring에서 S3로 업로드 -> 매 로직(분류, 캡션) 시마다 S3에 저장된 원본 이미지를 불러와 텍스트 마스킹(EasyOCR) 으로 전처리를 해주는 것 보다 마스킹 된 파일 자체를 AI 서버에서 바로 S3에 올려주는 것이 훨씬 효율적일 것이라 판단했습니다.

따라서 image 업로드 관련 로직은 삭제해두었습니다.

기존의 be-server-url/api/v1/image/upload 로 들어오던 이미지 업로드 요청은 ai-server-url/api/v1/upload 로 들어와야 합니다 ! ! ! !


🧪 테스트 결과


@brothergiven brothergiven merged commit fe4e8fb into develop Nov 17, 2025
1 check passed
@brothergiven brothergiven deleted the refact/ai-server-api branch November 17, 2025 05:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants