Добавлено: 28 января 2023 г.
Prerequisites: VSCode and .Net 7 installed. Don't need to copy the code, GitHub link provided in the end.
Open up a terminal in VSCode or any IDE of your choice, run:
dotnet new console
2 files will appear, default Program.cs and .csproj named according to your folder:
Now let's create a file called OpenAIResponse.cs and start filling in the objects.
Main response object
Text response and usage objects
We will use these objects to translate the open...
далее...