From 9d658673543fa4098fe9ee283188cf3eee9669a9 Mon Sep 17 00:00:00 2001 From: ishaan-jaff Date: Mon, 6 Nov 2023 12:47:05 -0800 Subject: [PATCH] (fix) text_completion naming --- litellm/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/litellm/main.py b/litellm/main.py index 682384fa0f..2176689a17 100644 --- a/litellm/main.py +++ b/litellm/main.py @@ -1992,13 +1992,13 @@ def text_completion( ## if it's a 2d list - each element in the list is a text_completion() request if len(prompt) > 0 and type(prompt[0]) == list: responses = [None for x in prompt] # init responses - for i, request in enumerate(prompt): - decoded_prompt = tokenizer.decode(request) + for i, individual_prompt in enumerate(prompt): + decoded_prompt = tokenizer.decode(individual_prompt) # type: ignore response = text_completion( model = model, prompt=decoded_prompt, *args, - **kwargs, + **optional_params ) responses[i] = response["choices"][0]