Schema additionalProperties must be false when strict is true

getting this error in the playground, what am i missing?

{
    "name": "get_name",
    "description": "get the person name",
    "strict": true,
    "parameters": {
        "type": "object",
        "properties": {
            "person_name": {
                "type": "string",
                "description": "The person name if available"
            },
            "has_person_name": {
                "type": "boolean",
                "description": "if the user has given its name"
            }
        },
        "additionalProperties": false,
        "required": [
            "has_person_name"
        ]
    }
}

Entering this in here:

## Add response format

Use a JSON schema to define the structure of the model's response format. [Learn more.](https://platform.openai.com/docs/guides/structured-outputs)
1 Like