Qavren.Edge.Chat.Onnx 1.0.0

Prefix Reserved
dotnet add package Qavren.Edge.Chat.Onnx --version 1.0.0
                    
NuGet\Install-Package Qavren.Edge.Chat.Onnx -Version 1.0.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="Qavren.Edge.Chat.Onnx" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Qavren.Edge.Chat.Onnx" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Qavren.Edge.Chat.Onnx" />
                    
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 Qavren.Edge.Chat.Onnx --version 1.0.0
                    
#r "nuget: Qavren.Edge.Chat.Onnx, 1.0.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 Qavren.Edge.Chat.Onnx@1.0.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=Qavren.Edge.Chat.Onnx&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Qavren.Edge.Chat.Onnx&version=1.0.0
                    
Install as a Cake Tool

Qavren.Edge.Chat.Onnx

An on-device Microsoft.Extensions.AI IChatClient over ONNX Runtime GenAI (sub-project 4). Presets with pinned SHA-256 digests (ChatPresets.Llama32_1BInstructInt4, ChatPresets.Qwen3_600MInt4), consent-gated provisioning, a KV-cache-aware context budget with a ladder for small phones, thermally paced streaming, cooperative termination under memory pressure, a conversation cache, and history reduction with pinning. Error codes 7000-7299.

dotnet add package Qavren.Edge.Chat.Onnx
builder.UseQavrenEdge(edge => edge
    .UseSqliteNative()
    .AddSqlite(o => o.DatabaseName = "notes.db")
    .AddOnnxChat(ChatPresets.Llama32_1BInstructInt4));

var chat = sp.GetRequiredService<IChatClient>();
await foreach (var update in chat.GetStreamingResponseAsync("summarise my week"))
    Console.Write(update.Text);

There is no default preset and nothing downloads implicitly. Turns serialise behind one gate per model (the GenAI C API is not thread safe); a fifth queued turn is refused with ChatBusy. On iOS, a multi-GB model needs two entitlements in the consuming app: com.apple.developer.kernel.increased-memory-limit and com.apple.developer.kernel.extended-virtual-addressing. No Windows TFM: GenAI ships no Windows platform asset (the net10.0 build covers desktop).

Sub-project README: chat/README.md. MIT licensed. https://github.com/qavren-oss/qavren-edge

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-android36.0 is compatible.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-ios26.0 is compatible.  net10.0-maccatalyst was computed.  net10.0-maccatalyst26.0 is compatible.  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.0.0 480 9/25/2026
1.0.0-rc.1 74 9/24/2026
0.1.0-preview.1 79 9/13/2026