Skip to content

m-tabak/DeepinfraCSharp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DeepinfraCSharp NuGet Version

A simple C# .NET library to call Deepinfra's web API. It provides prompt managment and support for different models (currently only text-generation). This is an unofficial library and not endorsed by Deepinfra.

Example

using DeepinfraCSharp;

var api = new DeepinfraTextAPI(apiKey, Model.Airoboros_70b);
api.Prompt.SystemPrompt = "Be a helpful assistant.";
var wordsStream = api.RequsetStreamResponseAsync("What's the color of an Orange?");

await foreach(var word in wordsStream)
{
  Console.Write(word);
}
//Output: The color of an Orange is Orange.

Requirements

Framework .NET 6.0 or higher.

Dependencies

RestSharp 110.2.0

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages