mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-08 08:08:37 +00:00
Response transformation crashed with TypeError when counting tokens for multimodal (dict-shaped) embedding inputs, since encoding.encode() was called directly on the dict instead of its text parts. Also removed a dead, equally-buggy duplicate of the same loop in _transform_response. Separately, the embeddings guardrail handler silently skipped multimodal dict inputs instead of scanning them, letting prohibited text/image content bypass the configured guardrail. It now extracts and scans the text parts while leaving image parts untouched. |
||
|---|---|---|
| .. | ||
| test_api_docs.py | ||
| test_circular_imports.py | ||
| test_env_keys.py | ||
| test_exception_types.py | ||
| test_general_setting_keys.py | ||
| test_optional_params.py | ||
| test_readme_providers.py | ||
| test_requests_lib_usage.py | ||
| test_router_settings.py | ||
| test_standard_logging_payload.py | ||