DevOnBike.Overfit.Server 10.0.25

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

DevOnBike.Overfit.Server

An OpenAI-compatible HTTP server for the Overfit in-process LLM runtime — dependency-free (System.Net.HttpListener + System.Text.Json source-gen), no ASP.NET Core, so it drops cleanly into a Native-AOT single binary. Point any OpenAI client at the base URL and only change the model name.

What you get

  • OverfitOpenAiServer.Serve(client, modelName, host, port, systemMessage, …) — a blocking, single-flight server exposing:
    • POST /v1/chat/completions — streaming (SSE) and non-streaming, with response_format → JSON / JSON-Schema constrained decoding; sampling via temperature / top_p / min_p (llama.cpp-server extension; takes precedence over top_p)
    • GET /v1/models, GET /health
  • DevOnBike.Overfit.Server.OpenAi — the OpenAI request/response DTOs + a source-generated JsonSerializerContext (OpenAiJsonContext) and host-agnostic OpenAiChatMapping (sampling / response_format → constraint / history replay) you can reuse from ASP.NET or your own host.

Usage

using DevOnBike.Overfit.LanguageModels;
using DevOnBike.Overfit.Server;

using var client = OverfitClient.LoadGguf(@"C:\models\qwen2.5-3b-instruct-q4_k_m.gguf");
client.AddSystem("You are a concise assistant running locally in pure .NET.");

// Serves until the token is cancelled. One request at a time (single model session).
OverfitOpenAiServer.Serve(client, "qwen2.5-3b", host: "127.0.0.1", port: 11434,
    systemMessage: "You are a concise assistant running locally in pure .NET.");

This is exactly what the overfit serve CLI command uses.

Notes

  • Requests are served strictly one at a time (single-tenant model session / one KV cache), like a local llama.cpp server. For multi-tenant use a session-per-request pool.
  • Binding to 127.0.0.1/localhost needs no elevation; 0.0.0.0/* may need a URL ACL / admin on Windows.
  • The decode worker pool parks when idle (spin-then-park) — a server waiting for requests sits at ~0% CPU.

License

Dual-licensed: AGPL-3.0-or-later for open source; a commercial license is available for closed-source / SaaS / regulated use — see COMMERCIAL.md.

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
10.0.25 60 6/12/2026
10.0.24 64 6/11/2026
10.0.23 60 6/11/2026
10.0.22 63 6/9/2026
10.0.21 91 6/5/2026