A web application that simulates conversations between two LLMs on a given topic.
- Simulate conversations between two LLMs
- Customize roles and number of turns
- Real-time conversation display
- Modern Material-UI interface
-
Navigate to the backend directory:
cd backend -
Create a virtual environment and activate it:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install dependencies:
pip install -r requirements.txt
-
Create a
.envfile from.env.exampleand add your OpenAI API key:OPENAI_API_KEY=your_api_key_here -
Start the backend server:
uvicorn main:app --reload
-
Navigate to the frontend directory:
cd frontend -
Install dependencies:
npm install
-
Start the development server:
npm start
- Open your browser and navigate to
http://localhost:3000 - Enter a topic for the conversation
- Define roles for both LLMs
- Set the number of turns
- Click "Start Simulation" to begin the conversation
- Backend: FastAPI, OpenAI API
- Frontend: React, TypeScript, Material-UI
- API Communication: Axios