Skip to content

sahilpotdukhe/HeyTalkAI

Repository files navigation

Echat Logo

AI Application with OpenAI Integration

🔰 Project Overview

This project involves the design and implementation of a cross-platform AI application leveraging OpenAI's powerful suite of tools. The application focuses on enhancing user interactions through intelligent chatbots, user-driven image generation, and language translation modules.


🎥 Simple demo

EchatDemo


➤ Key Features

1. Intelligent Chatbots

  • Developed intelligent chatbots capable of resolving user queries and generating informative responses.
  • These chatbots are trained to adapt to various response models, enhancing their versatility and effectiveness in different scenarios.

2. User-Driven Image Generation with DALL.E

  • Leveraging OpenAI's state-of-the-art DALL.E model, our application empowers users to drive image generation based on their creative prompts.
  • By providing intuitive prompts, users can effortlessly generate visually captivating images, expanding the boundaries of creativity within our platform.

3. Language Translation Module

  • Developed a language translation module to facilitate seamless communication across linguistic barriers.
  • Users can input text in their preferred language, and the system translates it into the desired target language in real-time.
  • This module enhances the accessibility and usability of the application for users worldwide.

4. Cross-Platform Compatibility

  • The application is designed to run seamlessly across different platforms, ensuring accessibility for a wide range of users.

🛠 Technologies and Frameworks Used

  • Figma Figma (for UI design)
  • Flutter Flutter Framework (Dart language)
  • OpenAI OpenAI (Used API for image generation and intelligent chats)
  • Provider Provider (for state management)

⚡Usage/Examples

import 'package:flutter/material.dart';
void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await Firebase.initializeApp();
  runApp(MyApp());
}

//MyApp
class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

// Send prompt to API and get the response
static Future<List<ChatModel>> sendMessageToAPI(
      {required String message, required String modelName}) async {
    try {
      var response = await http.post(
          Uri.parse("https://api.openai.com/v1/chat/completions"),
          headers: {
            'Authorization': 'Bearer $OPENAI_API_KEY',
            'Content-Type': 'application/json'
          },
          body: jsonEncode({
            "model": modelName,
            "messages": [
              {"role": "user", "content": message}
            ]
          }));
      Map jsonResponse = jsonDecode(response.body);
.............
}

🚀 Installation

  1. Clone the repository:

    git clone https://github.com/sahilpotdukhe/HeyTalkAI.git
  2. Navigate to the project directory:

    cd echat
  3. Install dependencies:

    flutter pub get
  4. Run the app:

    flutter run
    

📋 Requirements

Figma App Design

Screen 1

OnBoarding Screen 1

Screen 2

OnBoarding Screen 2

Screen 3

OnBoarding Screen 3

Screen 1

Home Screen

Screen 2

ChatBot

Screen 3

Image generator

Screen 1

Language Translator

Screen 3

Splash Screen

🤝 Contributing

Contributions are always welcome! If you have a suggestion that would make this better, please fork the repo and create a pull request. Don't forget to give the project a star! Thanks again!

  • Fork the Project
  • Create your Feature Branch (bash git checkout -b feature/AmazingFeature)
  • Commit your Changes (bash git commit -m 'Add some AmazingFeature')
  • Push to the Branch (bash git push origin feature/AmazingFeature)
  • Open a Pull Request

➤ Contact

You can reach out to me via the following methods:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published