chat_gpt_sdk  by redevrx

Flutter SDK for OpenAI APIs

created 2 years ago
349 stars

Top 80.8% on sourcepulse

GitHubView on GitHub
Project Summary

This Flutter package provides a comprehensive, unofficial SDK for interacting with the OpenAI API, targeting Flutter developers. It offers a robust interface for leveraging advanced AI capabilities like GPT-4, DALL-E, Assistants API, and audio/image processing within Flutter applications, simplifying complex API integrations.

How It Works

The SDK abstracts OpenAI's RESTful API endpoints into Dart methods, supporting both standard and Server-Sent Events (SSE) for real-time responses. It handles request formatting, authentication, and response parsing, including specific models for text completion, chat, image generation, embeddings, fine-tuning, and audio processing. Key features include support for function calling, image input for chat models, and the full suite of the Assistants API V2.

Quick Start & Requirements

  • Install via pub.dev: flutter pub add chat_gpt_sdk
  • Requires an OpenAI API key.
  • See Docs for detailed usage.

Highlighted Details

  • Full support for Assistants API V2, including Threads, Messages, and Runs.
  • Implements GPT-4 Vision for image input in chat.
  • Supports function calling for structured AI responses.
  • Includes capabilities for audio transcription, translation, and speech synthesis.
  • Offers image generation via DALL-E 2 and DALL-E 3.

Maintenance & Community

  • Maintained by redevrx.
  • Community-driven, unofficial library.

Licensing & Compatibility

  • License: MIT.
  • Compatible with Flutter projects.

Limitations & Caveats

  • As an unofficial library, it may lag behind official API updates or introduce breaking changes.
  • Error handling examples are provided, but robust error management is the developer's responsibility.
Health Check
Last commit

3 months ago

Responsiveness

Inactive

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

Explore Similar Projects

Feedback? Help us improve.