litellm/tests/unit/llms/volcengine/image_edit
mateo-berri 839a06996f fix(volcengine): resolve image api_base and key like chat, bill deployment prices first, and keep stream away from Ark
Image generation and edits now use api_base as given with the same default
and key order as Volcengine chat, and no longer read ARK_API_BASE. A user
longer than Ark's 64-character safety_identifier limit is sent as its sha256.
stream is rejected (or dropped with drop_params) whether it arrives top-level
or inside extra_body, and a multipart stream="false" is not a stream request.
Edits forward extra_body fields to Ark. A deployment's own per-image and tier
prices now win over the shared layer and tier rows

On lts/1.108.x the line has no image fan-out, so n above 1 still answers a
400 unless drop_params, and the stream flag is read by a local helper since
the line has no litellm/images/streaming.py

(cherry picked from commit abf4325511)
2026-11-25 04:07:57 -08:00
..
__init__.py feat(volcengine): add Seedream image generation and editing 2026-11-24 23:54:12 -08:00
test_volcengine_image_edit_transformation.py fix(volcengine): resolve image api_base and key like chat, bill deployment prices first, and keep stream away from Ark 2026-11-25 04:07:57 -08:00