Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
whamlastxmas
on Jan 12, 2024
|
parent
|
context
|
favorite
| on:
I'm sorry but I cannot fulfill this request it goe...
I would just make it respond ONLY in JSON and if it's non-compliant formatting then don't use it. I doubt it'd apologize in JSON format. A quick test just now seems to work
gs17
on Jan 12, 2024
[–]
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.
tester457
on Jan 12, 2024
|
parent
|
next
[–]
I would use function calling instead to return a boolean and throw away anything that isn't a bool.
andybak
on Jan 12, 2024
|
parent
|
prev
[–]
Ask the API to return escaped JSON or any other specific format. An apology or refusal won't be encoded.
Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: