Skip to content

ylee102/LLM_chatting_room

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LLM Chatting Room

A web application that simulates conversations between two LLMs on a given topic.

Features

  • Simulate conversations between two LLMs
  • Customize roles and number of turns
  • Real-time conversation display
  • Modern Material-UI interface

Setup

Backend

  1. Navigate to the backend directory:

    cd backend
  2. Create a virtual environment and activate it:

    python -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
  3. Install dependencies:

    pip install -r requirements.txt
  4. Create a .env file from .env.example and add your OpenAI API key:

    OPENAI_API_KEY=your_api_key_here
    
  5. Start the backend server:

    uvicorn main:app --reload

Frontend

  1. Navigate to the frontend directory:

    cd frontend
  2. Install dependencies:

    npm install
  3. Start the development server:

    npm start

Usage

  1. Open your browser and navigate to http://localhost:3000
  2. Enter a topic for the conversation
  3. Define roles for both LLMs
  4. Set the number of turns
  5. Click "Start Simulation" to begin the conversation

Technologies Used

  • Backend: FastAPI, OpenAI API
  • Frontend: React, TypeScript, Material-UI
  • API Communication: Axios

About

Shows two llms debating on a particular subject

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors