chore: format

This commit is contained in:
Timothy J. Baek
2024-10-25 22:18:48 -07:00
parent 47e4250f58
commit 925a903e38
44 changed files with 46 additions and 5 deletions

View File

@@ -442,12 +442,10 @@ async def chat_completion_tools_handler(
tool_function = tools[tool_function_name]["callable"]
sig = inspect.signature(tool_function)
tool_function_params = {
k: v
for k, v in tool_function_params.items()
if k in sig.parameters
k: v for k, v in tool_function_params.items() if k in sig.parameters
}
tool_output = await tool_function(**tool_function_params)
except Exception as e:
tool_output = str(e)