litellm/.github
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
..
actions fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
codeql fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
ISSUE_TEMPLATE fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
observatory fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
screenshots fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
scripts fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
workflows fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
ci-coverage-allowlist.yml fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
CODEOWNERS fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
dependabot.yaml fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
deploy-on-aws.png fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
deploy-on-gcp.png fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
deploy-to-aws.png fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
FUNDING.yml fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
pull_request_template.md fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30
template.yaml fix(cohere): handle multimodal inputs in token counting and guardrails 2026-08-13 09:01:47 +05:30