mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
fix function calling mistral large latest
This commit is contained in:
parent
e518b1e6c1
commit
f2e8b2500f
1 changed files with 3 additions and 0 deletions
|
@ -105,6 +105,9 @@ def test_parallel_function_call(model):
|
|||
# Step 4: send the info for each function call and function response to the model
|
||||
for tool_call in tool_calls:
|
||||
function_name = tool_call.function.name
|
||||
if function_name not in available_functions:
|
||||
# the model called a function that does not exist in available_functions - don't try calling anything
|
||||
return
|
||||
function_to_call = available_functions[function_name]
|
||||
function_args = json.loads(tool_call.function.arguments)
|
||||
function_response = function_to_call(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue