litellm/scripts
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
..
adaptive_router_demo fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
health_check fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
benchmark_anthropic_messages_perf.py fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
benchmark_chat_completions_perf.py fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
benchmark_mock.py fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
benchmark_model_response_creator.py fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
benchmark_proxy_vs_provider.py fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
benchmark_streaming_chunk_overhead.py fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
budget_ratchet_check.py fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
check_type_discipline.py fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
create_litellm_branch.ps1 fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
create_litellm_branch.sh fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
create_team_key_and_submit_guardrail.sh fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
eval_compression.py fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
install-cli.sh fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
install.sh fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
install_git_hooks.sh fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
mock_bedrock_passthrough_target.py fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
mock_grayswan_timeout_server.py fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
mutation_report.py fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
pre_commit_lint.sh fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
prisma_generate_if_needed.py fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
ruff_strict_gate.py fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
test_agent_mcp_endpoints.sh fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
test_guardrails_register_endpoints.sh fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
test_tool_allowlist_script.py fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
tpm_headline_test.sh fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
type_check_gate.py fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
type_discipline_gate.py fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
verify_adaptive_router.py fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
with_dashboard_node.sh fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30