Skip to content

Latest commit

 

History

History
47 lines (30 loc) · 1.04 KB

README.md

File metadata and controls

47 lines (30 loc) · 1.04 KB

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.