mirror of
https://github.com/BerriAI/litellm.git
synced 2026-12-02 01:28:38 +00:00
* fix(vertex_ai): reject unmappable Gemini image sizes and forward edit image controls * fix(vertex_ai): honor multipart drop_params and snake_case imageConfig keys on Gemini image edits * fix(proxy): fold imageConfig[key] multipart fields into imageConfig on image edits * fix(images): fold imageConfig edit fields only where the provider takes imageConfig - Fold imageConfig[key] multipart edit fields in the SDK edit path, only for providers whose edit config lists imageConfig, deep-merged over a JSON imageConfig with bracket keys winning - Let background auto or opaque, moderation auto and output_compression 100 pass on Vertex Gemini without a 400 - Accept image_config as an alias of imageConfig on Vertex Gemini generation and edits - Keep drop_params, additional_drop_params and the params they drop out of OpenAI-style multipart edit forms * fix(images): cap and validate imageConfig bracket fields and keep OpenAI-only params as silent drops * fix(images): drop additional_drop_params before folding, forward edit fields through litellm_proxy hops, merge imageConfig spellings A deployment's additional_drop_params now removes imageConfig bracket fields before the fold, so its 64-field cap no longer answers 400 for a param the deployment drops A litellm_proxy hop forwards drop_params and the imageConfig fields to the next proxy as sent, so the proxy that serves the Gemini model folds and drops them Snake_case bracket keys are renamed to camelCase before the merge, and imageConfig and image_config sent together merge with imageConfig winning a clash * fix(images): reject bracket fields beside a non-object imageConfig, drop them under additional_drop_params, camelCase nested keys imageConfig[...] fields sent beside an imageConfig that is not a JSON object now answer 400 on gemini/ too, as vertex_ai/ already did, and drop_params keeps the bracket fields OpenAI-style multipart edits leave out bracket fields whose root additional_drop_params lists, so imageConfig[aspectRatio] no longer reaches a deployment that drops imageConfig The fold camelCases nested imageConfig keys on both sides before merging, so a snake_case bracket key overrides a nested camelCase JSON key instead of sending both * fix(images): drop a bracket field additional_drop_params names exactly on image edits --------- Co-authored-by: mateo-berri <277851410+mateo-berri@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| agent_engine | ||
| audio_transcription | ||
| batches | ||
| context_caching | ||
| count_tokens | ||
| files | ||
| fine_tuning | ||
| fixtures | ||
| gemini | ||
| gemini_embeddings | ||
| image_edit | ||
| image_generation | ||
| interactions | ||
| multimodal_embeddings | ||
| rag_engine | ||
| realtime | ||
| rerank | ||
| responses | ||
| text_to_speech | ||
| vertex_ai_partner_models | ||
| vertex_embeddings | ||
| vertex_gemma_models | ||
| videos | ||
| __init__.py | ||
| google_genai_proxy_test_config.yaml | ||
| test_bge_embedding.py | ||
| test_bge_response_transformation.py | ||
| test_common_utils.py | ||
| test_gemini_batch_embeddings.py | ||
| test_gemini_empty_properties.py | ||
| test_gemini_header_forwarding.py | ||
| test_http_status_201.py | ||
| test_request_labels.py | ||
| test_vertex.py | ||
| test_vertex_ai_batch_transformation.py | ||
| test_vertex_ai_common_utils.py | ||
| test_vertex_ai_non_gemini.py | ||
| test_vertex_ai_psc_endpoint_support.py | ||
| test_vertex_ai_search_vector_store_transformation.py | ||
| test_vertex_gemini_gcs_uri_mime.py | ||
| test_vertex_global_url_support.py | ||
| test_vertex_image_generation.py | ||
| test_vertex_llm_base.py | ||
| test_vertex_model_garden_openapi.py | ||
| test_vertex_passthrough_logging_handler.py | ||