Hacker News new | ask | show | jobs
by davnicwil 1070 days ago
seems like they run the generated response through the typescript type checker, and if it fails, retry using the error message as a further hint to the LLM, until it succeeds.
2 comments

I would expect that, if it doesn’t do that even, why bother… that is also trivial to do anyway.
also some very basic prompt engineering