mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-11 17:05:43 +00:00
999ffabc39
* fix(gemini): use JSON instead of form-data for image edit requests Gemini's image edit API expects JSON body, not multipart/form-data. The handler was sending form-encoded data which caused 400 errors: "Invalid JSON payload received. Unexpected token." Changes: - Add use_multipart_form_data() method to BaseImageEditConfig (default True) - Modify image_edit_handler to use json= when use_multipart_form_data() is False - Override use_multipart_form_data() in GeminiImageEditConfig to return False * test(gemini): add test for use_multipart_form_data