Updated filtering
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user