mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-27 20:31:04 +00:00
* fix(anthropic-adapter): properly translate Anthropic image format to OpenAI Fixed bug where images were stripped during Anthropic Messages API to Azure OpenAI translation. Image source data was being stringified instead of having fields properly extracted. - Added _translate_anthropic_image_to_openai() helper method - Support both base64 and URL image formats per Anthropic API spec - Refactored user message and tool result image handling * test(anthropic-adapter): add comprehensive image translation tests Add 5 unit tests covering image translation from Anthropic to OpenAI format: - User messages with base64 images - User messages with URL images - Tool results with base64 images - Tool results with URL images - Mixed content with multiple images
In total litellm runs 1000+ tests
[02/20/2025] Update:
To make it easier to contribute and map what behavior is tested,
we've started mapping the litellm directory in tests/test_litellm
This folder can only run mock tests.