Skip to content

A chat application built with Next.js that simulates a conversation between a user and an AI using LangChain. The app features multiple personality options for the AI, including Default, Pirate, Comedian, and Robot, allowing for varied and engaging interactions.

Notifications You must be signed in to change notification settings

AtilMohAmine/next-ai-chat

Repository files navigation

Next AI Chat

A chat application built with Next.js that simulates a conversation between a user and an AI using LangChain. The app features multiple personality options for the AI, including Default, Pirate, Comedian, and Robot, allowing for varied and engaging interactions.

Installation

  1. Clone the repository:

    git clone https://github.com/atilmohamine/next-ai-chat.git
  2. Navigate to the project directory:

    cd next-ai-chat
  3. Install the dependencies:

    npm install
  4. Set up your OpenAI API key:

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

    OPENAI_API_KEY=your-api-key

Usage

  1. Start the development server:

    npm run dev
  2. Open your browser and go to http://localhost:3000.

  3. Interact with the chat interface by sending messages.

About

A chat application built with Next.js that simulates a conversation between a user and an AI using LangChain. The app features multiple personality options for the AI, including Default, Pirate, Comedian, and Robot, allowing for varied and engaging interactions.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published