Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
amolgupta
on June 14, 2023
|
parent
|
context
|
favorite
| on:
Native JSON Output from GPT-4
I pass a kotlin data class and ask chatGPT to return json which can be parsed by that class. Reduces errors with date-time parsing and other formatting issues and takes up lesser tokens than the approach in the article.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: