VOOZH about

URL: https://www.nuget.org/packages/Aiursoft.GptClient.ChatConsole/

⇱ NuGet Gallery | Aiursoft.GptClient.ChatConsole 10.0.15




Aiursoft.GptClient.ChatConsole 10.0.15

dotnet tool install --global Aiursoft.GptClient.ChatConsole --version 10.0.15
 
 
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
 
if you are setting up this repo
dotnet tool install --local Aiursoft.GptClient.ChatConsole --version 10.0.15
 
 
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Aiursoft.GptClient.ChatConsole&version=10.0.15
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package Aiursoft.GptClient.ChatConsole --version 10.0.15
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Aiursoft GptClient

👁 MIT licensed
👁 NuGet version (Aiursoft.GptClient)
👁 NuGet version (Aiursoft.GptClient.ChatConsole)

The SDK for ChatGpt. Simple implementation and easy to use.

How to install

First, install Aiursoft.GptClient to your ASP.NET Core project from nuget.org:

dotnet add package Aiursoft.GptClient

Exposed API in ChatClient:

public Task<CompletionData> AskModel(OpenAiModel model);
public Task<CompletionData> AskString(string gptModelType, params string[] content);

Required IConfiguration keys:

{
 "OpenAI:Token": "YourOpenAIKey",
 "OpenAI:CompletionApiUrl": "https://api.openai.com/v1/engines/davinci/completions"
}

For example, you can use the following code to create a simple ChatGpt client:

using Aiursoft.GptClient;
using Aiursoft.GptClient.Services;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;

namespace Test
{
 public abstract class Program
 {
 public static async Task Main()
 {
 // Keys
 var apiKey = "";
 var endpoint = "http://localhost:11434/api/chat";
 var model = "qwen3:32b-q8_0";

 // Create a simple ChatGpt client.
 var services = new ServiceCollection();
 services.AddHttpClient();
 services.AddLogging(logging => { logging.SetMinimumLevel(LogLevel.Warning); });
 services.AddGptClient();
 var serviceProvider = services.BuildServiceProvider();
 var chatClient = serviceProvider.GetRequiredService<ChatClient>();
 async Task<string> GetAnswer(string[] prompts)
 {
 return (await chatClient.AskString(
 modelType: model,
 completionApiUrl: endpoint,
 token: apiKey,
 content: prompts,
 CancellationToken.None)).GetAnswerPart();
 }

 // Example usage
 var answer = await GetAnswer(["Why is the sky blue?"]);
 Console.WriteLine(answer);
 }
 }
}

Now you have built a simple ChatGpt client.

How to contribute

There are many ways to contribute to the project: logging bugs, submitting pull requests, reporting issues, and creating suggestions.

Even if you with push rights on the repository, you should create a personal fork and create feature branches there when you need them. This keeps the main repository clean and your workflow cruft out of sight.

We're also interested in your feedback on the future of this project. You can submit a suggestion or feature request through the issue tracker. To make this process more effective, we're asking that these include more information to help define them more clearly.

Product Versions Compatible and additional computed target framework versions.
.NET net10.0 net10.0 is compatible.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
10.0.15 98 6/10/2026
10.0.14 104 5/15/2026
10.0.13 105 5/13/2026
10.0.12 109 4/22/2026
10.0.11 109 4/15/2026
10.0.10 140 3/13/2026
10.0.9 121 3/10/2026
10.0.8 121 2/11/2026
10.0.7 129 1/28/2026
10.0.6 123 1/18/2026
10.0.5 124 1/14/2026
10.0.4 200 12/26/2025
10.0.3 474 12/10/2025
10.0.2 143 11/29/2025
10.0.1 316 11/13/2025
9.0.24 321 11/12/2025
9.0.23 216 10/22/2025
9.0.22 350 9/17/2025
9.0.21 221 9/10/2025
9.0.20 236 9/4/2025
Loading failed