DeepInfra 0.0.0-dev.24

This is a prerelease version of DeepInfra.
There is a newer version of this package available.
See the version list below for details.
dotnet add package DeepInfra --version 0.0.0-dev.24                
NuGet\Install-Package DeepInfra -Version 0.0.0-dev.24                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DeepInfra" Version="0.0.0-dev.24" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DeepInfra --version 0.0.0-dev.24                
#r "nuget: DeepInfra, 0.0.0-dev.24"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install DeepInfra as a Cake Addin
#addin nuget:?package=DeepInfra&version=0.0.0-dev.24&prerelease

// Install DeepInfra as a Cake Tool
#tool nuget:?package=DeepInfra&version=0.0.0-dev.24&prerelease                

DeepInfra

Nuget package dotnet License: MIT Discord

Features 🔥

  • Fully generated C# SDK based on official DeepInfra OpenAPI specification using OpenApiGenerator
  • Same day update to support new features
  • Updated and supported automatically if there are no breaking changes
  • Contains a supported list of constants such as current prices, models, and other
  • Source generator to define functions natively through C# interfaces
  • All modern .NET features - nullability, trimming, NativeAOT, etc.
  • Support .Net Framework/.Net Standard 2.0
  • Support all DeepInfra API endpoints including Object Detection, Token Classification, Image Classification, Fill Mask and more.

Usage

using var api = new DeepInfraApi("API_KEY");
string response = await api.Chat.CreateChatCompletionAsync(
    messages: ["Generate five random words."],
    model: CreateChatCompletionRequestModel.Gpt4oMini);
Console.WriteLine(response); // "apple, banana, cherry, date, elderberry"

var enumerable = api.Chat.CreateChatCompletionAsStreamAsync(
    messages: ["Generate five random words."],
    model: CreateChatCompletionRequestModel.Gpt4oMini);

await foreach (string response in enumerable)
{
    Console.WriteLine(response);
}

Support

Priority place for bugs: https://github.com/tryAGI/DeepInfra/issues
Priority place for ideas and general questions: https://github.com/tryAGI/DeepInfra/discussions
Discord: https://discord.gg/Ca2xhfBf3v

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.9.0 96 9/26/2024
0.1.0 113 8/19/2024
0.0.0-dev.29 67 8/24/2024
0.0.0-dev.28 61 8/24/2024
0.0.0-dev.26 63 8/21/2024
0.0.0-dev.25 59 8/20/2024
0.0.0-dev.24 62 8/20/2024
0.0.0-dev.23 57 8/20/2024
0.0.0-dev.22 62 8/19/2024
0.0.0-dev.21 60 8/19/2024
0.0.0-dev.20 62 8/19/2024
0.0.0-dev.19 56 8/19/2024
0.0.0-dev.18 61 8/19/2024
0.0.0-dev.17 65 8/18/2024
0.0.0-dev.16 66 8/15/2024
0.0.0-dev.15 68 8/15/2024
0.0.0-dev.14 62 8/13/2024
0.0.0-dev.13 66 8/13/2024
0.0.0-dev.12 64 8/12/2024
0.0.0-dev.11 58 8/12/2024
0.0.0-dev.10 59 8/12/2024
0.0.0-dev.8 56 8/8/2024
0.0.0-dev.7 49 8/8/2024
0.0.0-dev.6 67 8/8/2024
0.0.0-dev.4 36 8/6/2024
0.0.0-dev.3 33 8/6/2024