* fix(vertex-ai): raise BadRequestError instead of ValueError in VertexAIImagenImageEditConfig
When transform_image_edit_request() receives image=None, an empty image list,
or prompt=None, it previously raised a raw ValueError. The exception_mapping
layer then wrapped this into APIConnectionError with a misleading 'looks like a
bug in LiteLLM' message, and the proxy returned HTTP 500 instead of 400.
The same issue was fixed for VertexAIGeminiImageEditConfig in PR #52087
(commit 40a4054c71). This commit applies the identical fix to the previously
missed VertexAIImagenImageEditConfig.
Changes:
- Replace the three raw ValueError raises in transform_image_edit_request with
litellm.BadRequestError(message=..., model=model, llm_provider='vertex_ai').
- Add tests/llms/vertex_ai/image_edit/test_vertex_imagen_bad_request.py with
five unit tests covering both validation paths and their status codes.
Fixes#52366
* test(vertex-ai): add comprehensive tests for all 3 validation raise sites
* test(vertex-ai): test public sync/async entry points and proxy-level 400 response
* fix(vertex-ai): return 400 for unreadable Imagen edit images and fix the stale ValueError test
A string, path or wrong-type image or mask still surfaced as a 500. The older test that expected ValueError for an empty image list failed against the new BadRequestError, and the proxy test never reached the Imagen code, so both are removed
---------
Co-authored-by: kenneth <kenneth@berri.ai>