AuroraScienceHub.Framework.Ai 10.1.0

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

AuroraScienceHub.Framework.Ai

AI service integrations including OpenAI GPT and DeepL translation with proxy support.

Overview

Provides unified interfaces for common AI services including GPT-based chat completions and DeepL translations.

Key Features

  • GPT Integration - OpenAI GPT chat completions
  • DeepL Translation - High-quality machine translation
  • Proxy Support - HTTP proxy configuration for AI services
  • Unified Interfaces - Consistent API across providers

Installation

dotnet add package AuroraScienceHub.Framework.Ai

Usage

GPT Client

// Configuration
builder.Services.AddChatGpt(options =>
{
    options.ApiKey = builder.Configuration["Gpt:ApiKey"]!;
    options.DefaultModel = "gpt-4";
});

builder.Services.AddScoped<IGptClient, GptClient>();

// Usage
public class AiService
{
    private readonly IGptClient _gptClient;

    public async Task<string?> GenerateTextAsync(string prompt)
    {
        return await _gptClient.AskAsync(prompt);
    }
}

DeepL Translation

// Configuration
builder.Services.Configure<DeeplOptions>(
    builder.Configuration.GetSection("Deepl"));
builder.Services.AddScoped<IDeeplClient, DeeplClient>();

// Usage
public class TranslationService
{
    private readonly IDeeplClient _deeplClient;

    public async Task<string> TranslateAsync(
        string text,
        string targetLanguage)
    {
        return await _deeplClient.TranslateAsync(text, targetLanguage);
    }
}

Configuration

{
  "Gpt": {
    "ApiKey": "your-openai-api-key",
    "Model": "gpt-4"
  },
  "Deepl": {
    "ApiKey": "your-deepl-api-key"
  }
}

License

See LICENSE file in the repository root.

  • AuroraScienceHub.Framework.Http - HTTP utilities
  • AuroraScienceHub.Framework.Caching - Cache AI responses
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.1.0 87 8/19/2026
10.0.8 89 8/14/2026
10.0.7 93 8/11/2026
10.0.6 95 8/11/2026
10.0.5 135 4/23/2026
10.0.4 122 4/23/2026
10.0.3 133 2/11/2026
10.0.2 125 1/29/2026
10.0.1 230 12/25/2025
10.0.0 443 12/11/2025
9.0.7 439 11/20/2025
9.0.6 203 11/15/2025
9.0.5 147 11/8/2025
9.0.4 165 10/24/2025
9.0.3 218 10/15/2025
9.0.2 198 10/15/2025
9.0.1 206 10/15/2025