I haven’t tried this yet, but I have a feeling that it would fail for anything nontrivial. Nevertheless, the concept is very interesting, and as soon as I get API access to GPT-4, I will try it.
I’ve recently ported a library from TypeScript to Python with the help of ChatGPT (GPT-4), and it took me about a day. It would be interesting to run this tool on the same codebase and compare the results.
If anyone has GPT-4 API access, I would really appreciate if they tried running this tool on something simple, and wrote about the result in the comments.
@AutoTLDR
TL;DR: (AI-generated 🤖)
GPT-Migrate is a project that aims to make it easier to migrate a codebase from one framework or language to another. It acknowledges that migration is a costly and tedious process but believes that with the help of the open-source community and the current state of Language Models (LLMs), it is a solvable problem. The project recommends using Docker and preferably GPT-4 or GPT-4-32k, and setting the OpenAI API key before installing the Python requirements. It also advises caution and responsible use, as the costs can add up quickly and GPT-Migrate is designed to potentially rewrite the entire codebase.
Under the Hood
gpt-3.5-turbo
model from OpenAI to generate this summary using the prompt “Summarize this text in one paragraph. Include all important points.
”How to Use AutoTLDR
Oh finally. Sorry everyone for this train wreck of a thread.