mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-09 22:31:41 +00:00
fix mypy issue
This commit is contained in:
parent
16985ab2f3
commit
dce95d3a03
1 changed files with 3 additions and 3 deletions
|
|
@ -927,9 +927,9 @@ def function_setup( # noqa: PLR0915
|
|||
if "messages" in kwargs:
|
||||
kwargs["messages"] = processed_messages
|
||||
elif len(args) > 1:
|
||||
args = list(args)
|
||||
args[1] = processed_messages
|
||||
args = tuple(args)
|
||||
args_list = list(args)
|
||||
args_list[1] = processed_messages
|
||||
args = tuple(args_list)
|
||||
|
||||
except Exception as e:
|
||||
# Log the error but don't fail the request
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue