litellm/tests/e2e/claude_code
jaideeppyne ab78459097 fix(cohere): handle multimodal inputs in token counting and guardrails
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.
2026-08-13 09:01:47 +05:30
..
basic_messaging_non_streaming fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
basic_messaging_streaming fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
count_tokens fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
long_context_1m fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
passthrough fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
pdf_input fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
prompt_caching_1h fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
prompt_caching_5m fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
structured_outputs fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
thinking fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
thinking_with_tool_use fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
tool_search fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
tool_use fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
tool_use_streaming fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
vision fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
web_search fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
__init__.py fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
_basic_messaging.py fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
_compat_models.py fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
_env.py fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
_gpt_cells.py fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
_passthrough.py fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
cli_driver.py fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
conftest.py fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
http_probe.py fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
manifest.yaml fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
matrix_builder.py fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
pr_gate_version_resolver.py fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
rate_limiter.py fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
run_compat.sh fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
sample_compatibility-matrix.json fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
test_config.yaml fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30