mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-12-05 16:07:33 +00:00
Content moderation collected Anthropic image blocks only from source.data, never from source.url. Since #8312 the /v1/messages -> OpenAI Responses bridge forwards URL image sources upstream as input_image, so an image sent as {"type":"url","url":...} (including a data: URI) reached the model without being moderated, while the same image sent as base64 was. The native Anthropic path forwarded such images unmoderated as well. Collect source.url like the other image URL fields; addModerationImage still accepts only http(s) and data: values.