A simple C# .NET wrapper library to use with OpenAI's GPT-3 API. More context on Roger Pincombe's blog and forked from OpenAI-API-dotnet.
This repository is available to transfer to the OpenAI organization if they so choose to accept it.
This library targets .NET standard 2.0 and above.
Watch out my Rystem framework to be able to do .Net webapp faster (easy integration with repository pattern or CQRS for your Azure services).
Install package OpenSource.OpenAi
from Nuget.
Here's how via command line:
Install-Package OpenSource.OpenAi
var apiKey = configuration["Azure:ApiKey"];
var resourceName = configuration["Azure:ResourceName"];
var deploymentId = configuration["Azure:DeploymentId"];
services.AddOpenAi(settings =>
{
settings.ApiKey = apiKey;
});