mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
(fix) linting fixes
This commit is contained in:
parent
9d65867354
commit
f591d79376
2 changed files with 9 additions and 9 deletions
|
@ -1994,12 +1994,12 @@ def text_completion(
|
|||
responses = [None for x in prompt] # init responses
|
||||
for i, individual_prompt in enumerate(prompt):
|
||||
decoded_prompt = tokenizer.decode(individual_prompt) # type: ignore
|
||||
all_params = {**kwargs, **optional_params} # combine optional params and kwargs
|
||||
response = text_completion(
|
||||
model = model,
|
||||
prompt=decoded_prompt,
|
||||
model = model, # type: ignore
|
||||
prompt = decoded_prompt, # type: ignore
|
||||
*args,
|
||||
|
||||
**optional_params
|
||||
**all_params,
|
||||
)
|
||||
responses[i] = response["choices"][0]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue