.NET library for ChatGPT integration, supporting OpenAI and Azure OpenAI
Top 86.7% on sourcepulse
This library provides a .NET integration for OpenAI and Azure OpenAI Service, enabling developers to easily incorporate ChatGPT capabilities into their applications. It offers robust features for managing conversations, handling streaming responses, and integrating with function and tool calling.
How It Works
The library leverages .NET's dependency injection for seamless integration. It manages conversation history using an in-memory cache with configurable message limits and expiration times, allowing for stateful interactions. The core functionality is exposed through an IChatGptClient
interface, supporting both synchronous and streaming asynchronous calls, with options to customize model parameters, response formats, and system prompts.
Quick Start & Requirements
dotnet add package ChatGptNet
ChatGpt
service with API keys and model details.Highlighted Details
MemoryCache
.AskStreamAsync
and AsDeltas
.Maintenance & Community
develop
branch.Licensing & Compatibility
Limitations & Caveats
Seed
and ResponseFormat
are only supported by newer models.8 months ago
1 day