ChatGPT.Net  by PawanOsman

C# library for accessing the OpenAI ChatGPT API

created 2 years ago
381 stars

Top 76.0% on sourcepulse

GitHubView on GitHub
Project Summary

This C# library provides developers with a straightforward way to integrate OpenAI's ChatGPT models into their applications. It supports both the official OpenAI API and an unofficial API for accessing chat.openai.com, offering features like response streaming, multiple conversations, and system message configuration.

How It Works

The library abstracts the complexities of interacting with the OpenAI API, allowing users to send text prompts and receive responses. It supports streaming responses for a more interactive user experience and allows for managing multiple conversations concurrently. A key feature is the ability to handle multimodal inputs, including images, by constructing content items with text and image data, specifically for models like GPT-4 Vision Preview.

Quick Start & Requirements

  • Install: Install-Package ChatGPT.Net or dotnet add package ChatGPT.Net
  • Prerequisites: .NET environment. An OpenAI API key is required for the official API.
  • Documentation: ChatGPT.Net

Highlighted Details

  • Supports official OpenAI API and an unofficial API for chat.openai.com.
  • Enables response streaming for real-time feedback.
  • Handles multimodal inputs (text and images) for compatible models.
  • Allows configuration of various API parameters like model, temperature, and max tokens.

Maintenance & Community

  • The project has a Discord server linked in the README for community support.

Licensing & Compatibility

  • MIT License. This license permits commercial use and linking with closed-source applications.

Limitations & Caveats

  • The unofficial API's stability and terms of service may be subject to change as it relies on unofficial access methods.
Health Check
Last commit

1 year ago

Responsiveness

1 week

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

Explore Similar Projects

Feedback? Help us improve.