BuzzBlazor.Provider.OpenAI
0.1.0-preview.3
This is a prerelease version of BuzzBlazor.Provider.OpenAI.
dotnet add package BuzzBlazor.Provider.OpenAI --version 0.1.0-preview.3
NuGet\Install-Package BuzzBlazor.Provider.OpenAI -Version 0.1.0-preview.3
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="BuzzBlazor.Provider.OpenAI" Version="0.1.0-preview.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="BuzzBlazor.Provider.OpenAI" Version="0.1.0-preview.3" />
<PackageReference Include="BuzzBlazor.Provider.OpenAI" />
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 BuzzBlazor.Provider.OpenAI --version 0.1.0-preview.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: BuzzBlazor.Provider.OpenAI, 0.1.0-preview.3"
#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 BuzzBlazor.Provider.OpenAI@0.1.0-preview.3
#: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=BuzzBlazor.Provider.OpenAI&version=0.1.0-preview.3&prerelease
#tool nuget:?package=BuzzBlazor.Provider.OpenAI&version=0.1.0-preview.3&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
BuzzBlazor
BuzzBlazor is a Blazor component framework focused on reusable UI, accessibility, theming, and practical AI-assisted UX patterns.
- Website: https://www.buzzblazor.com
- Repository: https://github.com/Koshai/BuzzFramework
Packages
NuGet package IDs:
BuzzBlazorBuzzBlazor.CoreBuzzBlazor.Provider.OpenAIBuzzBlazor.Provider.Ollama
Current preview line:
0.1.0-preview.3
Installation
- Create a Blazor app (
Blazor Web Appin Visual Studio ordotnet new blazor). - Install packages:
dotnet add package BuzzBlazor --version 0.1.0-preview.3
dotnet add package BuzzBlazor.Core --version 0.1.0-preview.3
dotnet add package BuzzBlazor.Provider.OpenAI --version 0.1.0-preview.3
dotnet add package BuzzBlazor.Provider.Ollama --version 0.1.0-preview.3
Basic Setup
Register Buzz and providers in Program.cs:
builder.Services.AddBuzzFramework(builder.Configuration, options =>
{
options.DefaultProviderName = "openai";
options.ProviderFailoverOrder = ["openai", "ollama", "mock"];
// Cost controls
options.AiMaxPromptCharacters = 1800;
options.AiMaxUserInputCharacters = 350;
options.AiMaxRequestsPerDay = 400;
options.AiBudgetExceededBehavior = "fallback-mock";
});
if (!string.IsNullOrWhiteSpace(builder.Configuration["Buzz:OpenAI:ApiKey"]
?? Environment.GetEnvironmentVariable("OPENAI_API_KEY")))
{
builder.Services.AddBuzzOpenAI(builder.Configuration);
}
if (!string.IsNullOrWhiteSpace(builder.Configuration["Buzz:Ollama:BaseUrl"]))
{
builder.Services.AddBuzzOllama(builder.Configuration);
}
builder.Services.AddBuzzMock();
Provider Behavior
Provider selection order is:
Buzz:DefaultProviderBuzz:ProviderFailoverOrder- any remaining registered providers
This makes it easy to prefer OpenAI or Ollama while keeping a safe fallback.
Cost Controls (Recommended)
For daily development, use these practical defaults:
AiMaxPromptCharacters:1200-2000AiMaxUserInputCharacters:250-500AiMaxRequestsPerDay:200-500AiBudgetExceededBehavior:fallback-mockBuzz:OpenAI:MaxOutputTokens:120-300Buzz:OpenAI:Temperature:0.1-0.3
Learn More
- Website docs and examples: https://www.buzzblazor.com
- In-repo docs:
docs/ - Sample app source:
Buzz.Samples/
| Product | Versions 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.
-
net10.0
- BuzzBlazor.Core (>= 0.1.0-preview.3)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.0-preview.5.25277.114)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.0-preview.5.25277.114)
- Microsoft.Extensions.Http (>= 10.0.0-preview.5.25277.114)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 10.0.0-preview.5.25277.114)
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 |
|---|---|---|
| 0.1.0-preview.3 | 97 | 3/27/2026 |
| 0.1.0-preview.2 | 74 | 3/19/2026 |
| 0.1.0-preview.1 | 70 | 3/19/2026 |