Skip to content

fix(vton): handle Vertex AI RAI filter error#535

Open
thxforall wants to merge 2 commits into
devfrom
fix/vton-rai-filter-error
Open

fix(vton): handle Vertex AI RAI filter error#535
thxforall wants to merge 2 commits into
devfrom
fix/vton-rai-filter-error

Conversation

@thxforall
Copy link
Copy Markdown
Contributor

Summary

  • Vertex AI Virtual Try-On API가 safety filter로 이미지를 차단할 때 raiFilteredReason을 반환하는데, 기존 코드는 이를 감지하지 못해 generic "No result from VTON API" 에러를 표시
  • 개발 환경에서 Vertex AI 전체 응답 JSON을 로깅하여 디버깅 용이하게 개선
  • 프론트엔드에서 RAI 필터 에러를 사용자 친화적 메시지로 변환: "This image combination was filtered by the AI safety system. Try a different photo or item."

Test plan

  • VTON 모달에서 RAI 필터가 트리거되는 이미지 조합 시도 → 사용자 친화 에러 메시지 확인
  • 정상 이미지 조합 시 기존 플로우 정상 동작 확인
  • dev 서버 터미널에서 [VTON] Empty prediction. Full response: 로그 출력 확인

🤖 Generated with Claude Code

thxforall and others added 2 commits May 14, 2026 20:38
Post picker modal, UUID packet ID fix, unified LLM call,
channel thumbnails, and Research/Firecrawl removal.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Vertex AI returns raiFilteredReason instead of image data when safety
filter triggers. Log full response in dev and surface actionable message.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 14, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
decoded-app Ready Ready Preview, Comment May 14, 2026 11:59am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant