Updated filtering

This commit is contained in:
2025-06-03 17:36:26 -05:00
parent 67f83fd3c7
commit 438a940660
+1 -2
View File
@@ -162,8 +162,7 @@ class OpenAICompatibleInferenceBot(InferenceBot):
function_args_str = function_to_call.arguments
logging.info(f"Attempting to call tool: {function_name} with args: {function_args_str}")
if function_name not in self.functions:
if function_name not in [f["function"]["name"] for f in self.functions]:
logging.warning(f"Tool function {function_name} not found in available functions.")
tool_results_for_model.append({
"role": "tool",