This little tool allows you to use OpenAI API to convert natural language sentences to code. You will need Visual Studio 2022, and a valid OpenAI key. Use the command invoke Natural Command, which be found by right-clicking on an open document. Put your cursor where you want, then use the command. A form will be displayed in which you can select the parameters for your prompt. You need to click on apply to apply the parameters. Use the Enter API Key button to enter you API key. All those settings are saved in appsetting.json. Once your parameters are configured and your key entered once, you can click on the button "Ask for code" and enter a prompt. It will be sent with your parameters to GPT with the model you have selected (as I don't have a key to test it with GPT 4, i've only made 3.5 turbo available. Don't hesitate to ask for an update with GPT 4) and you will get the function or code you asked for in return. For now I don't plan to add more features, but if you have some ideas don't hesitate to tell me. |