Skip to content

open responses conformance: 500 (internal server error) for tool calling request #4617

@mattf

Description

@mattf

System Info

0.4.0.dev0

Information

  • The official example scripts
  • My own modified scripts

🐛 Describe the bug

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"
        ]
      }
    }
  ]
}'

Error logs

         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

Expected behavior

successful response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions