Fix Google tools format - wrap function_declarations in list

parent d4056de8
......@@ -313,7 +313,7 @@ class GoogleProviderHandler(BaseProviderHandler):
if function_declarations:
google_tools = {"function_declarations": function_declarations}
config["tools"] = google_tools
config["tools"] = [google_tools]
logging.info(f"GoogleProviderHandler: Added {len(function_declarations)} tools to config")
# Handle streaming request
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment