G9AIAssistant.Gateway 1.1.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package G9AIAssistant.Gateway --version 1.1.0
                    
NuGet\Install-Package G9AIAssistant.Gateway -Version 1.1.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="G9AIAssistant.Gateway" Version="1.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="G9AIAssistant.Gateway" Version="1.1.0" />
                    
Directory.Packages.props
<PackageReference Include="G9AIAssistant.Gateway" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add G9AIAssistant.Gateway --version 1.1.0
                    
#r "nuget: G9AIAssistant.Gateway, 1.1.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.
#:package G9AIAssistant.Gateway@1.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=G9AIAssistant.Gateway&version=1.1.0
                    
Install as a Cake Addin
#tool nuget:?package=G9AIAssistant.Gateway&version=1.1.0
                    
Install as a Cake Tool

G9AIAssistant.Gateway

An OpenAI-compatible AI gateway for the G9 AI assistant: virtual keys (hash only), aliases, a ladder of backends with failover by error kind and load spreading, four concurrency caps with a priority queue, named sessions in a table, usage and limits per key (and per user on whose behalf), OpenAI-shaped errors, optional guards, a request log, and a compatibility profile that renames everything on the wire.

builder.Services.AddG9AssistantGateway(g =>
{
    g.Backends.Add(sp => new HttpBackend("openai", new Uri("https://api.openai.com/v1"), ct => ValueTask.FromResult(key), outbound));
    g.Options.Aliases["fast"] = "gpt-x-mini";
});
app.MapG9AssistantGateway("/v1");

Entry points: models, chat/completions, responses, messages, embeddings, audio/transcriptions, images/generations, usage, limits; each can be switched off. Stages can be replaced, added or removed. A standalone host is in samples/GatewayHost.

Part of the G9 AI assistant library. Documentation: see the guides that ship with the library.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows 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
1.4.0 43 12/2/2026
1.3.3 107 11/29/2026
1.3.2 99 11/28/2026
1.3.1 106 11/25/2026
1.3.0 92 11/25/2026
1.2.3 113 11/19/2026
1.2.2 89 11/19/2026
1.2.1 89 11/19/2026
1.2.0 91 11/19/2026
1.1.1 91 11/19/2026
1.1.0 111 11/15/2026
1.0.25 97 11/15/2026
1.0.24 96 11/14/2026
1.0.23 101 11/14/2026
1.0.22 98 11/14/2026
1.0.21 90 11/14/2026
1.0.20 100 11/14/2026
1.0.19 89 11/13/2026
1.0.18 91 11/13/2026
1.0.17 97 11/13/2026
Loading failed