invalid JSON schema with python client
I have been unable to send a request with a prompt and schema. I get OK results when I write a simplified schema within the prompt, however passing the class itself would be ideal per the documentation.
Code is as follows:
The error I get:
2 Replies
I already replied over the support ticket, but for the benefit of others, I think you just need to change start_time and end_time to Optional[str] in your Pydantic model.
^^ Confirmed this was the fix.