From df41973110b44667af1d8540f0c7b851c53b9bf4 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Fri, 1 May 2026 14:51:19 +0000 Subject: [PATCH] Remove dead embedding encoding fallback --- litellm/main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/litellm/main.py b/litellm/main.py index 6d5f9f9b05c..979dbe19d96 100644 --- a/litellm/main.py +++ b/litellm/main.py @@ -4924,8 +4924,7 @@ def embedding( # noqa: PLR0915 optional_params["encoding_format"] = encoding_format else: optional_params["encoding_format"] = ( - optional_params.get("encoding_format") - or get_secret_str("LITELLM_DEFAULT_EMBEDDING_ENCODING_FORMAT") + get_secret_str("LITELLM_DEFAULT_EMBEDDING_ENCODING_FORMAT") or "float" )