Now you can upload an entire code project into ChatGPT and chat with it.
When OpenAI introduced the code interpreter feature in ChatGPT, it marked a significant step towards the model’s multimodal capabilities. This feature enabled users to upload images and files and interact with them within the chat interface.
Sure, you can upload document files one by one, but what if you have a lot of files? What if they need to be in sub-folders?
In such cases, the per-file upload could become cumbersome.
Fortunately, ChatGPT now supports the ability to upload and process zipped files, addressing these limitations.
Here’s how it works:
Head over to the ChatGPT website and set the model to GPT-4. Click on the attach button (highlighted below) and select the zip file from your local disk.
Note: Code Interpreter is not available on the free version of ChatGPT. You need to subscribe to ChatGPT Plus, which costs $20 per month, and switch to the GPT-4 model in order to use it.
Once the zip file is attached, give the instructions for what you want to do with the zip file in the prompt box.
For instance, you could instruct ChatGPT to modify the spotlight template from Tailwind for your personal blog.
Prompt: modify the template for my personal blog. My name is Jim, a software engineer, technical writer, and solopreneur based in the Philippines.
ChatGPT will extract the zip file’s contents and analyze them to determine the appropriate modifications.
It may ask clarifying questions during the process, such as selecting between JavaScript or TypeScript versions.
To proceed, I need to know which version you are working with or prefer to modify — the JavaScript version (spotlight-js) or the TypeScript version (spotlight-ts).
It would take a couple of seconds for the AI to scan the whole project and make modifications.
In the end, ChatGPT is able to modify the project and give me the link to a downloadable zip file. That is super cool.
Here’s what the modified project looks like:
In comparison, this is what the original template looks like.
What’s even cooler about this is that you can make further modifications, like adding your own image, replacing the backlinks with your own social media links, etc.
Aside from uploading a zip file of the entire code base, you can also upload a zip file that contains multiple file types:
Can you also upload zipped video files? Yes, you can, but it can only extract the first frame of the video and give you a description of what it’s about.
ChatGPT’s new zip file feature is tremendously impactful in some sectors. Here are examples of practical applications:
Overall, I am impressed with this new capability of ChatGPT. By removing the last remaining barrier to feeding complex multi-file projects into ChatGPT, this feature opens the floodgates to new applications and use cases.
While the ability to upload local zip files is a valuable addition, it would be even more powerful if ChatGPT could directly access and process files stored in cloud repositories such as GitHub, Google Drive, and OneDrive.
Software engineer, writer, solopreneur