3 comments

[ 3.3 ms ] story [ 15.6 ms ] thread
This is very neat. I've explored similar approaches for merging code artifacts from an LLM, but my solution wasn't always 100% accurate. Most of the time a linter step was required after any merging due to missing or no longer needed dependencies.

Do you have a timeline for supporting Typescript? It'd be nice to abstract this functionality away from the rest of our LLM-handling code.

I'm the author of the project and am working on a parser for TypeScript right now. And I do agree that it's hard to get this 100% accurate. The merging part of this lib can be considered as an experiment right now, where I try to fix every new way GPT is writing code as I go