LLMBridge 1.0.1
dotnet add package LLMBridge --version 1.0.1
NuGet\Install-Package LLMBridge -Version 1.0.1
<PackageReference Include="LLMBridge" Version="1.0.1" />
<PackageVersion Include="LLMBridge" Version="1.0.1" />
<PackageReference Include="LLMBridge" />
paket add LLMBridge --version 1.0.1
#r "nuget: LLMBridge, 1.0.1"
#:package LLMBridge@1.0.1
#addin nuget:?package=LLMBridge&version=1.0.1
#tool nuget:?package=LLMBridge&version=1.0.1
LLMBridge
A unified .NET SDK for OpenAI, Azure OpenAI, Gemini, Claude, and future LLM providers.
LLMBridge provides a single, consistent API for interacting with multiple Large Language Model (LLM) providers without vendor lock-in.
Features
- Unified API across providers
- OpenAI support
- Azure OpenAI support
- Google Gemini support
- Anthropic Claude support
- Provider switching with minimal code changes
- Common request and response models
- Token usage tracking
- Async-first design
- .NET 8+ compatible
Installation
dotnet add package LLMBridge
Quick Start
using LLMBridge.Client;
using LLMBridge.Enums;
using LLMBridge.Models;
var options = new LLMOptions
{
Provider = LLMProviderType.Gemini,
ApiKey = "YOUR_API_KEY"
};
var client = new LLMClient(options);
var response = await client.GenerateAsync(
new LLMRequest
{
Model = "gemini-2.5-flash",
Prompt = "Explain SOLID Principles"
});
Console.WriteLine(response.Content);
Supported Providers
| Provider | Status |
|---|---|
| OpenAI | Supported |
| Azure OpenAI | Supported |
| Gemini | Supported |
| Claude | Supported |
Why LLMBridge?
Without LLMBridge:
var openAiClient = new OpenAIClient(...);
var geminiClient = new GeminiClient(...);
var anthropicClient = new AnthropicClient(...);
With LLMBridge:
var client = new LLMClient(options);
var response = await client.GenerateAsync(request);
Only the provider changes.
Response Model
public class LLMResponse
{
public bool Success { get; set; }
public string Content { get; set; }
public string? ErrorMessage { get; set; }
public int? PromptTokens { get; set; }
public int? CompletionTokens { get; set; }
public int? TotalTokens { get; set; }
}
##Architecture Consumer App(Your app) --> LLMClient --> ILLMProvider --> 1.OpenAI provider 2. Gemini Provider --> Azure OpenAI provider 3. Claude Provider
Roadmap
v1.0.0
- Text Generation
- Multi-Provider Support
- Unified Response Model
v1.1.0
- Streaming
- Function Calling
- Tool Calling
- Embeddings
v2.0.0
- RAG Helpers
- Vector Database Integrations
- Multi-Agent Support
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
-
net8.0
- Azure.AI.OpenAI (>= 2.1.0)
- Azure.Identity (>= 1.21.0)
- Google_GenerativeAI (>= 3.6.6)
- OpenAI (>= 2.11.0)
- System.Net.Http.Json (>= 10.0.9)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
🎉 Initial Release
• OpenAI Support
• Azure OpenAI Support
• Google Gemini Support
• Anthropic Claude Support
• Unified API Across Providers
• Common Request & Response Models
• Token Usage Tracking
• Async-First Design
• .NET 8+ Support
Roadmap:
Streaming, Function Calling, Tool Calling, Embeddings, DI Extensions, and Logging Support.