DeepInfra 0.9.0

dotnet add package DeepInfra --version 0.9.0                
NuGet\Install-Package DeepInfra -Version 0.9.0                
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.9.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DeepInfra --version 0.9.0                
#r "nuget: DeepInfra, 0.9.0"                
#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.9.0

// Install DeepInfra as a Cake Tool
#tool nuget:?package=DeepInfra&version=0.9.0                

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
  • 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

To interact with the OpenAI like API, you need to use tryAGI.OpenAI library:

<PackageReference Include="tryAGI.OpenAI" Version="3.7.0" />
using OpenAI;

using var client = CustomProviders.DeepInfra(apiKey);
var enumerable = api.Chat.CreateChatCompletionAsStreamAsync(
    model: "meta-llama/Meta-Llama-3-8B-Instruct",
    messages: ["What is the capital of the United States?"]);

await foreach (var response in enumerable)
{
    Console.Write(response.Choices[0].Delta.Content);
}

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

Acknowledgments

JetBrains logo

This project is supported by JetBrains through the Open Source Support Program.

CodeRabbit logo

This project is supported by CodeRabbit through the Open Source Support Program.

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 100 9/26/2024
0.1.0 115 8/19/2024
0.0.0-dev.29 68 8/24/2024
0.0.0-dev.28 62 8/24/2024
0.0.0-dev.26 64 8/21/2024
0.0.0-dev.25 60 8/20/2024
0.0.0-dev.24 63 8/20/2024
0.0.0-dev.23 58 8/20/2024
0.0.0-dev.22 63 8/19/2024
0.0.0-dev.21 61 8/19/2024
0.0.0-dev.20 63 8/19/2024
0.0.0-dev.19 57 8/19/2024
0.0.0-dev.18 62 8/19/2024
0.0.0-dev.17 66 8/18/2024
0.0.0-dev.16 67 8/15/2024
0.0.0-dev.15 69 8/15/2024
0.0.0-dev.14 63 8/13/2024
0.0.0-dev.13 67 8/13/2024
0.0.0-dev.12 65 8/12/2024
0.0.0-dev.11 59 8/12/2024
0.0.0-dev.10 60 8/12/2024
0.0.0-dev.8 57 8/8/2024
0.0.0-dev.7 50 8/8/2024
0.0.0-dev.6 68 8/8/2024
0.0.0-dev.4 37 8/6/2024
0.0.0-dev.3 34 8/6/2024