From f2e8b2500fc4c66ee76bfc34a4ae97c96a243ddf Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Wed, 15 May 2024 16:05:17 -0700 Subject: [PATCH] fix function calling mistral large latest --- litellm/tests/test_function_calling.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/litellm/tests/test_function_calling.py b/litellm/tests/test_function_calling.py index b36762d9cb..6e4e9d3e86 100644 --- a/litellm/tests/test_function_calling.py +++ b/litellm/tests/test_function_calling.py @@ -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(