mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-01 06:22:01 +00:00
fix function calling mistral large latest
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user