BigOtis / talkto

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Imaginary Chat Application

This is an Imaginary Chat Application built using React and OpenAI API. It allows you to have a chat with any person you can imagine. You can create new conversations with personalities of your choice, and the application uses OpenAI API to generate the responses, simulating a chat experience with that person.

Features

  • Chat with any person you can imagine
  • Dynamic contact list with the ability to add new conversations
  • Uses OpenAI API to generate realistic chat responses
  • Responsive design for various screen sizes

Prerequisites

Before running this application, ensure you have Node.js installed on your system.

Installation

Follow these steps to set up the Imaginary Chat Application:

  1. Clone the repository:
git clone https://github.com/BigOtis/talkto.git
cd talkto
  1. Install the dependencies:
npm install
  1. Set up the OpenAI API key:

  2. Create a .env file in the root of the project directory, and add your OpenAI API key:

API_KEY_VALUE=your_api_key_here

Replace your_api_key_here with your actual OpenAI API key.
Running the application
  1. Start the development server:
npm run server

This command will start the server required for the OpenAI API integration. Keep this terminal window open.

  1. In a new terminal window, start the React development server:
npm start

This command will open the Imaginary Chat Application in your default web browser. The application should be running on http://localhost:3000/.

Now, you can start chatting with any person you can imagine! Add new conversations and interact with the generated responses from the OpenAI API. Enjoy your chat experience!

About


Languages

Language:JavaScript 95.9%Language:HTML 2.0%Language:CSS 1.9%Language:Dockerfile 0.2%Language:Shell 0.0%