Skip to content

feat(moderation): implement image content safety check#1267

Open
Rader wants to merge 1 commit into
mainfrom
sync_mr_2709_9f2b262
Open

feat(moderation): implement image content safety check#1267
Rader wants to merge 1 commit into
mainfrom
sync_mr_2709_9f2b262

Conversation

@Rader

@Rader Rader commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

Summary:

  • Implements image content safety checks by integrating Alibaba Cloud's PassImageURLCheck API to detect sensitive media, including support for both public URLs and private repository streams.
  • Introduces a unified FileCheckContext to standardize file checking across all types and adds a configurable environment switch (STARHUB_SERVER_SENSITIVE_CHECK_IMAGE_ENABLE) to enable/disable the feature.
  • Consolidates image file extension definitions into a single source of truth and ensures proper context cancellation handling with retry logic to prevent resource leaks.

@Rader

Rader commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator Author

Depends on #1266

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