fix: align Titan image detection with Nova — restrict to data:image/ prefix

This commit is contained in:
serhiim 2026-04-14 18:43:16 +02:00
parent 660679c784
commit 52192b2448

View file

@ -464,7 +464,7 @@ class BedrockEmbedding(BaseAWSLLM):
and not current.startswith("data:")
and next_elem is not None
and isinstance(next_elem, str)
and next_elem.startswith("data:")
and next_elem.startswith("data:image/")
):
# Text followed by image → combined request
transformed_request: (