curl -i http://localhost:8321/v1/responses \
-H "Content-Type: application/json" \
-d '{
"model": "...",
"input": [
{
"type": "message",
"role": "user",
"content": "What is the weather like in San Francisco?"
}
],
"tools": [
{
"type": "function",
"name": "get_weather",
"description": "Get the current weather for a location",
"parameters": {
"type": "object",
"properties": {
"location": {
"type": "string",
"description": "The city and state, e.g. San Francisco, CA"
}
},
"required": [
"location"
]
}
}
]
}'
RuntimeError: OpenAI response failed: Error code: 400 - {'title': 'JSON Schema Validation Error', 'detail':
"Your request has violated JSON schema constraint 'type' for the JSON field 'tools.0.function.strict', please
check the JSON schema for the JSON field 'tools.0.function.strict' and make sure your request is valid for
expected : 'boolean'", 'status': 400}
INFO 2026-01-16 10:00:27,013 uvicorn.access:473 uncategorized: ::1:32966 - "POST /v1/responses HTTP/1.0" 500
System Info
0.4.0.dev0
Information
🐛 Describe the bug
Error logs
Expected behavior
successful response