![]() |
VOOZH | about |
dotnet add package Zatomic.AI.Providers --version 4.11.0
NuGet\Install-Package Zatomic.AI.Providers -Version 4.11.0
<PackageReference Include="Zatomic.AI.Providers" Version="4.11.0" />
<PackageVersion Include="Zatomic.AI.Providers" Version="4.11.0" />Directory.Packages.props
<PackageReference Include="Zatomic.AI.Providers" />Project file
paket add Zatomic.AI.Providers --version 4.11.0
#r "nuget: Zatomic.AI.Providers, 4.11.0"
#:package Zatomic.AI.Providers@4.11.0
#addin nuget:?package=Zatomic.AI.Providers&version=4.11.0Install as a Cake Addin
#tool nuget:?package=Zatomic.AI.Providers&version=4.11.0Install as a Cake Tool
C# .NET library that provides chat functionality for the following AI providers: AI21 Labs, Amazon Bedrock, Anthropic, Azure OpenAI, Azure Serverless, Cohere, Databricks, Deep Infra, Fireworks AI, Google Gemini, Groq, Hugging Face, Hyperbolic, IBM WatsonX, Inception, Meta, Mistral, Moonshot AI, Nvidia, OpenAI, Perplexity, Together AI, and xAI.
The library calls the chat completions REST APIs and inference endpoints for each of the above AI providers. Everything is strongly-typed with the library handling all JSON serialization/deserialization for all requests and responses. Both non-stream and streaming functionality is supported using async methods for improved performance, and each client utilizes exponential retries to handle 429 Too Many Requests responses.
Currently, only .net10 is supported.
Using the .NET CLI:
dotnet add package Zatomic.AI.Providers
Using the NuGet CLI:
nuget install Zatomic.AI.Providers
Using the Package Manager console:
Install-Package Zatomic.AI.Providers
From within Visual Studio:
Samples for all AI providers can be found in the src/Zatomic.AI.Providers.Samples project. This is an NUnit test project, but that's simply to make it easy to run/debug the sample methods. Before running any of the sample methods, you must add an AppSettings.Development.json file to the root of the project. This file should contain the API keys, models, etc for the providers you want to run against.
The format of the AppSettigns.Development.json file is as follows:
{
"AI21Labs": {
"ApiKey": "",
"Model": ""
},
"AmazonBedrock": {
"AccessKey": "",
"SecretKey": "",
"Region": "",
"Model": ""
},
"Anthropic": {
"ApiKey": "",
"Model": "",
"MaxTokens": ""
},
"AzureOpenAI": {
"ApiKey": "",
"Endpoint": "",
"Deployment": "",
"Model": ""
},
"AzureServerless": {
"ApiKey": "",
"Endpoint": "",
"Model": ""
},
"Cohere": {
"ApiKey": "",
"Model": ""
},
"Databricks": {
"ApiKey": "",
"ApiUrl": ""
},
"DeepInfra": {
"ApiKey": "",
"Model": ""
},
"FireworksAI": {
"ApiKey": "",
"Model": ""
},
"GoogleGemini": {
"ApiKey": "",
"Model": ""
},
"Groq": {
"ApiKey": "",
"Model": ""
},
"HuggingFace": {
"AccessToken": "",
"Endpoint": "",
"Model": ""
},
"Hyperbolic": {
"ApiKey": "",
"Model": ""
},
"IbmWatsonX": {
"AccessToken": "",
"ModelId": "",
"ProjectId": ""
},
"Inception": {
"ApiKey": "",
"Model": ""
},
"Meta": {
"ApiKey": "",
"Model": ""
},
"Mistral": {
"ApiKey": "",
"Model": ""
},
"MoonshotAI": {
"ApiKey": "",
"Model": ""
},
"Nvidia": {
"ApiKey": "",
"Model": ""
},
"OpenAI": {
"ApiKey": "",
"Model": ""
},
"Perplexity": {
"ApiKey": "",
"Model": ""
},
"TogetherAI": {
"ApiKey": "",
"Model": ""
},
"xAI": {
"ApiKey": "",
"Model": ""
}
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.