ai_chat_plus 1.2.3 copy "ai_chat_plus: ^1.2.3" to clipboard
ai_chat_plus: ^1.2.3 copied to clipboard

A Flutter package by jamalihassan0307 for seamless AI chat integration. Features OpenAI, Gemini, and Claude support with type-safe implementation.

example/README.md

AI Chat Plus Example #

This example demonstrates how to use the AI Chat Plus package created by jamalihassan0307.

Features Demonstrated #

  • Multiple AI provider support (OpenAI, Gemini, Claude)
  • Real-time provider switching
  • Error handling
  • Type-safe implementation

Getting Started #

  1. Clone the repository
  2. Add your API keys in lib/main.dart:
    String _getApiKey(AIProvider provider) {
      switch (provider) {
        case AIProvider.openAI:
          return 'YOUR_OPENAI_API_KEY';
        case AIProvider.gemini:
          return 'YOUR_GEMINI_API_KEY';
        case AIProvider.claude:
          return 'YOUR_CLAUDE_API_KEY';
      }
    }
    
  3. Run the app:
    flutter run
    

Usage #

The example shows:

  • How to initialize the AI Chat widget
  • How to switch between different AI providers
  • How to handle errors
  • How to customize the chat interface

For more details, check the package documentation.

8
likes
160
points
214
downloads
screenshot

Publisher

unverified uploader

Weekly Downloads

A Flutter package by jamalihassan0307 for seamless AI chat integration. Features OpenAI, Gemini, and Claude support with type-safe implementation.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

dart_openai, equatable, flutter, flutter_web_plugins, freezed_annotation, google_generative_ai, http, json_annotation, provider, universal_io, web_socket_channel

More

Packages that depend on ai_chat_plus