Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

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.

3 comments

gs17

Reply

tester457  2 years ago

I would use function calling instead to return a boolean and throw away anything that isn't a bool.

andybak  2 years ago

Ask the API to return escaped JSON or any other specific format. An apology or refusal won't be encoded.

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities