HF RL Explorer

Google GenAI: 400 INVALID ARGUMENT when using safety settings with image content

Google GenAI: 400 INVALID ARGUMENT when using safety settings with image content: a task in LegoFlow-SWE (Harbor dataset). When calls to the Google GenAI (Gemini) integration include image content (e.g., from Image objects or data:image/ URIs), the API responds with 400 INVALID ARGUMENT . The…

The task

When calls to the Google GenAI (Gemini) integration include image content (e.g., from `Image` objects or `data:image/*` URIs), the API responds with `400 INVALID_ARGUMENT`. The error message states that categories like `HARM_CATEGORY_IMAGE_HATE`, `HARM_CATEGORY_IMAGE_DANGEROUS_CONTENT`,…

Part of Lego-X/LegoFlow-SWE.