Skip to content

Chat GPT Flutter is an innovative mobile application that seamlessly integrates Flutter with the APIs of Chat GPT. This powerful application allows users to engage in natural language conversations with Chat GPT, providing a smooth and intuitive chat experience.

Notifications You must be signed in to change notification settings

abdulrahmanHatem911/flutter-chat-gpt-text

Repository files navigation

Chat GPT Flutter

Overview

Chat GPT Flutter is an innovative mobile application that seamlessly integrates Flutter with the APIs of Chat GPT. This powerful application allows users to engage in natural language conversations with Chat GPT, providing a smooth and intuitive chat experience. Leverage the capabilities of Chat GPT to enhance your app's communication and interaction.

Features

  • Chat Interface: Utilizes the dash_chat_2 library for a feature-rich and customizable chat interface.
  • Chat GPT Integration: Leverages the chat_gpt_sdk library (version 2.2.5) to seamlessly connect Flutter with Chat GPT APIs.
  • Natural Language Processing: Engage in natural, human-like conversations with Chat GPT for a more interactive user experience.

Getting Started

Prerequisites

  • Ensure you have Flutter and Dart installed on your development environment.

Installation

  1. Add dependencies to your pubspec.yaml file:

    dependencies:
      dash_chat_2: ^0.0.18
      chat_gpt_sdk: ^2.2.5
  2. Run the following command in your terminal:

    flutter pub get

Usage

  1. Import the libraries in your Dart file:

    import 'package:dash_chat_2/dash_chat_2.dart';
    import 'package:chat_gpt_sdk/chat_gpt_sdk.dart';
  2. Initialize the Chat GPT SDK with your API key:

    ChatGPT.initialize(apiKey: 'YOUR_API_KEY');
  3. Implement the chat interface using DashChat from the dash_chat_2 library:

    DashChat(
      messages: _messages,
      onSend: _onSend,
      user: _user,
    )
  4. Use the chat_gpt_sdk to send and receive messages:

    // Sending a message to Chat GPT
    final response = await ChatGPT.sendMessage(message: 'Hello, Chat GPT!');
    
    // Receiving a response from Chat GPT
    final chatGPTResponse = response['message'];

Customization

Dash Chat 2

Customize the chat interface using the extensive customization options provided by the dash_chat_2 library. Refer to the dash_chat_2 documentation for details.

Chat GPT SDK

Explore additional functionalities and customization options available in the chat_gpt_sdk library. Refer to the chat_gpt_sdk documentation for detailed usage instructions.

Contributing

We welcome contributions! If you have ideas for improvement, open an issue or submit a pull request. For major changes, please discuss them first in an issue to ensure they align with the project's goals.

Happy Chatting! 🚀

Follow me :

About

Chat GPT Flutter is an innovative mobile application that seamlessly integrates Flutter with the APIs of Chat GPT. This powerful application allows users to engage in natural language conversations with Chat GPT, providing a smooth and intuitive chat experience.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published