From a48acd95f860c4fc85853e20668eabffff07cae7 Mon Sep 17 00:00:00 2001 From: Camille Farineau Date: Wed, 7 May 2025 18:52:04 +0200 Subject: [PATCH] fix(embeddings): use non default tokenizer when passing list of lists of tokens (int) --- litellm/proxy/proxy_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.py index 18e1d8d98a7..b215afc9e31 100644 --- a/litellm/proxy/proxy_server.py +++ b/litellm/proxy/proxy_server.py @@ -3821,7 +3821,7 @@ async def embeddings( # noqa: PLR0915 input_list = [] for i in data["input"]: input_list.append( - litellm.decode(model="gpt-3.5-turbo", tokens=i) + litellm.decode(model=m["model_name"], tokens=i) ) data["input"] = input_list break