mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-24 10:14:26 +00:00
file commit miss
This commit is contained in:
parent
7fa263b53f
commit
2023ca01c2
1 changed files with 2 additions and 1 deletions
|
@ -1263,8 +1263,9 @@ class CustomStreamWrapper:
|
|||
and "function" in tool
|
||||
and isinstance(tool["function"], dict)
|
||||
and ("type" not in tool or tool["type"] is None)
|
||||
and tool.get('id')
|
||||
):
|
||||
# if function returned but type set to None - mistral's api returns type: None
|
||||
# Refer to the test test_function_calling_tool_type
|
||||
tool["type"] = "function"
|
||||
model_response.choices[0].delta = Delta(**_json_delta)
|
||||
except Exception as e:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue