morganpartee / codegpt

GNU General Public License v3.0
23 stars 5 forks source link

Multifile Support #7

Closed morganpartee closed 1 year ago

morganpartee commented 1 year ago

Probably blocked by #5 but we need to be able to split code to multiple files. This kind of refactoring is just the BEST! Big questions on how though - Maybe return which lines can go to which file? The prompt here will be larger than most I would think

morganpartee commented 1 year ago

Also explain multiple files, though that's probably pretty easy. A readme generator wouldn't be too tough

morganpartee commented 1 year ago

This is about half done. With the change to a json return format, it can return multiple files. We just can't handle them all yet, but I think that'll be a like, 0.2.0 thing

morganpartee commented 1 year ago

This is all solved (I think lol) now with those code: https://github.com/morganpartee/codegpt/blob/main/codegpt/gpt_interface.py#L54

Inspired by this tweet: https://twitter.com/goodside/status/1557227829145882624