ChatGptNet  by marcominerva

.NET library for ChatGPT integration, supporting OpenAI and Azure OpenAI

created 2 years ago
316 stars

Top 86.7% on sourcepulse

GitHubView on GitHub
Project Summary

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

Highlighted Details

  • Supports both OpenAI and Azure OpenAI Service configurations.
  • Built-in conversation history management with MemoryCache.
  • Full support for function and tool calling, including response handling.
  • Enables response streaming via AskStreamAsync and AsDeltas.
  • Allows dynamic configuration and HTTP client customization (e.g., with Polly).

Maintenance & Community

  • Contributions are welcome via issues and pull requests targeting the develop branch.
  • No specific community links (Discord/Slack) or notable contributors are mentioned in the README.

Licensing & Compatibility

  • The README does not explicitly state a license. Compatibility for commercial use or closed-source linking is not specified.

Limitations & Caveats

  • The license is not specified, which may impact commercial adoption.
  • Some advanced features like Seed and ResponseFormat are only supported by newer models.
  • Content filtering information is tied to specific API versions for Azure OpenAI Service.
Health Check
Last commit

8 months ago

Responsiveness

1 day

Pull Requests (30d)
0
Issues (30d)
0
Star History
3 stars in the last 90 days

Explore Similar Projects

Starred by Peter Norvig Peter Norvig(Author of Artificial Intelligence: A Modern Approach; Research Director at Google), Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), and
2 more.

aisuite by andrewyng

0.2%
12k
Unified interface for multiple generative AI providers
created 1 year ago
updated 3 days ago
Feedback? Help us improve.