Invalid json in structured mode

If the AI is writing “strict” instead of obeying it, you either have the parameter too high in the response format object you are sending - or aren’t even using the correct API parameter for sending it.