This project is a real-time chat interface for users to engage in a debate with an AI agent. It allows users to submit debate topics to two autonomous agents taking each side.
To run this project, you can install the required dependencies by running the following command:
npm install && pip install -r requirements.txt
Before running the application, you need to set up an OpenAI API key. You can obtain an API key from the OpenAI website. Once you have the API key, set it as an environment variable named OPENAI_API_KEY
.
Before running the application, you need to set up an Metaphor API key. You can obtain an API key from the Metaphor website. Once you have the API key, set it as an environment variable named METAPHOR_API_KEY
.
To start the application, run the following command:
npm run dev
This will start the FastAPI server and make the API endpoints available.
-
LangChain Documentation: Official documentation for the LangChain package.
-
OpenAI API Documentation: Documentation for the OpenAI API.
-
Metaphor API Documentation: Documentation for the Metaphor API.