mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
fix args=None case
This commit is contained in:
parent
a4e33c8c67
commit
917525ee43
1 changed files with 3 additions and 2 deletions
|
@ -437,8 +437,9 @@ def completion(
|
|||
):
|
||||
function_call = response.candidates[0].content.parts[0].function_call
|
||||
args_dict = {}
|
||||
for k, v in function_call.args.items():
|
||||
args_dict[k] = v
|
||||
if function_call.args is not None:
|
||||
for k, v in function_call.args.items():
|
||||
args_dict[k] = v
|
||||
args_str = json.dumps(args_dict)
|
||||
message = litellm.Message(
|
||||
content=None,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue