Use GPT3 for code conversion

I tried to write a very simple prompt that will help the user to translate Python Code into C++ Code. The prompt also provide some example. It works very well often, I saw that sometimes it has problems in understanding how string and char types work. I also think that the opposite conversion (C++ to Python) will be easier for the AI.

This is the preset: OpenAI API

1 Like