Comment by gs17
2 years ago
If you're using the API's JSON mode, it will apologize in JSON. If you prompt asking for JSON not in that mode, it should work like you're thinking.
2 years ago
If you're using the API's JSON mode, it will apologize in JSON. If you prompt asking for JSON not in that mode, it should work like you're thinking.
I would use function calling instead to return a boolean and throw away anything that isn't a bool.
Ask the API to return escaped JSON or any other specific format. An apology or refusal won't be encoded.