Comment

Comment by iamflimflam1

GPT4 is much better than GPT3.5 at producing valid JSON and nothing else.

What I’ve found quite useful is to extract text from the first { and last }. This solves the problem of GPT adding some “helpful” explanations outside the JSON.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton