MeshWeaver.AI.OpenAI 3.0.0-rc3

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

MeshWeaver.AI.OpenAI

OpenAI-wire-protocol model providers for the MeshWeaver AI framework. One assembly serves every provider that speaks the OpenAI chat-completions protocol — they differ only by base URL and credentials:

Provider (AddXxx) ProviderName Endpoint
AddOpenAI OpenAI https://api.openai.com (SDK default)
AddAzureOpenAI AzureOpenAI your *.openai.azure.com deployment
AddOpenAICompatible OpenAICompatible any base URL you supply (OpenRouter, Groq, Together, vLLM, …)

Each AddXxx self-registers a LanguageModelCatalogSource (so the provider appears in the chat model picker and the Settings → Language Models tab) plus its IChatClientFactory. There is no central registry — a host opts into each provider it needs, gated by the Features:Ai:Providers:* flags.

Registration

meshBuilder
    .AddOpenAI()             // direct api.openai.com
    .AddAzureOpenAI()        // Azure-hosted OpenAI deployment
    .AddOpenAICompatible();  // generic custom-URL provider (OpenRouter, …)

Credentials

Credentials are not read from appsettings per user. Each saved provider is a nodeType:ModelProvider mesh node carrying its endpoint + (encrypted) API key; each LanguageModel child points back at it via ModelDefinition.ProviderRef. At chat time ChatClientCredentialResolver follows that reference, so the factory builds an OpenAIClient aimed at the right endpoint with the right key — and several distinct OpenAI-compatible gateways coexist without collision.

A system-default OpenAI: / AzureOpenAI: config section is still honoured as a fallback for the built-in catalog. OpenAICompatible has no system default — the user supplies the URL + key and fetches the model list live in the Settings tab.

Key components

  • OpenAIChatClientAgentFactory — serves OpenAI and OpenAICompatible (plain OpenAIClient at the resolved endpoint).
  • AzureOpenAIChatClientAgentFactory — serves AzureOpenAI (AzureOpenAIClient).
  • OpenAIExtensions / AzureOpenAIExtensions — the AddXxx builder extensions.
  • OpenAIConfiguration / AzureOpenAIConfiguration — system-default config shapes.
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
3.0.0-rc3 90 8/16/2026
3.0.0-rc2 631 8/14/2026
3.0.0-rc1 70 8/13/2026