Skip to content

fix(litellm): pass encoding_format="float" explicitly#144

Merged
georgeh0 merged 1 commit intomainfrom
g/litellm-encoding-format-default
Apr 22, 2026
Merged

fix(litellm): pass encoding_format="float" explicitly#144
georgeh0 merged 1 commit intomainfrom
g/litellm-encoding-format-default

Conversation

@georgeh0
Copy link
Copy Markdown
Member

Summary

  • LiteLLM documents encoding_format as defaulting to float, but some providers (e.g. nvidia_nim) error when it isn't passed explicitly.
  • Work around by passing encoding_format="float" on every PacedLiteLLMEmbedder request.
  • Update unit tests to reflect the new kwarg.

Test plan

  • CI (uv run pytest tests/test_litellm_embedder.py passes locally).

LiteLLM documents encoding_format as defaulting to float, but in
practice some providers (e.g. nvidia_nim) error out when it's not
provided. Pass it explicitly as a workaround.
@georgeh0 georgeh0 merged commit 755e703 into main Apr 22, 2026
4 checks passed
@georgeh0 georgeh0 deleted the g/litellm-encoding-format-default branch April 22, 2026 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant