ian-kent / gptchat

A GPT-4 client which gives your favourite AI a memory and tools for self-improvement
MIT License
351 stars 51 forks source link

Create a new directory to hold the new plugin version when recompiling #3

Closed Zinnusl closed 1 year ago

Zinnusl commented 1 year ago

I tend to get one compiler error that it will then fix, but it used to break when the directory already existed, so we move it beforehand.

ian-kent commented 1 year ago

Hey @Zinnusl 👋

Thanks for the feedback! I hope you don't mind but I went with a slightly different approach, but I appreciate you taking the time to open a PR anyway 🙏

The change I pushed allows it to overwrite the existing source code to avoid ending up with potentially large numbers of directories containing invalid source 😅

It does mean we lose the history of GPT's failed attempts, but I'm going to add a conversation logger to write the full conversation to disk.