harbor run -t swe-rebench/BerriAI__litellm-14715harbor download swe-rebench/BerriAI__litellm-14715[Bug]: Connection to gemini-2.5-flash-image-preview failed
After I added the gemini-2.5-flash-image-preview model to the Vertex provider, a 400 error occurred when testing the connection
litellm.BadRequestError: VertexAIException BadRequestError - {
"error": {
"code": 400,
"message": "The request is not supported by this model.",
"status": "INVALID_ARGUMENT"
}
}
stack trace: Traceback (most recent call last):
File "/usr/lib/python3.13/site-packages/litellm/llms/vertex_ai/gemini/vertex_and_google_ai_studio_gemini.py", line 1697, in async_completion
response = await client.post(
^^^^^^^^^^^^^^^^^^
api_base, headers=headers, json=cast(dict, request_body)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
) # type: ignore
^
File "/usr/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py", line 190, in async_wrapper
result = await func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.13/site-packages/litellm/llms/custom_httpx/http_handler.py", line 324, in post
raise e
File "/usr/lib/python3.13/site-packages/litellm/llms/custom_httpx/http_handler.py", line 280, in post
response.raise_for_status()
~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/lib/python3.13/site-packages/httpx/_models.py", line 829, in raise_for_status
raise HTTPStatusErro
Can anyone tell me why this happens?
No
1.76.0
No response
No
1.76.0
No response