Merge pull request #16385 from gaby/2025-08-08-13-38-31

feat: Propagate upstream OpenAI router errors
This commit is contained in:
Tim Jaeryang Baek
2025-08-09 00:58:14 +04:00
committed by GitHub
3 changed files with 350 additions and 276 deletions
+2 -2
View File
@@ -402,11 +402,11 @@ def convert_openapi_to_tool_payload(openapi_spec):
"type": param_schema.get("type"),
"description": description,
}
# Include items property for array types (required by OpenAI)
if param_schema.get("type") == "array" and "items" in param_schema:
param_property["items"] = param_schema["items"]
tool["parameters"]["properties"][param_name] = param_property
if param.get("required"):
tool["parameters"]["required"].append(param_name)