GitHub - mckaywrigley/ai-router-chat
Extracto
Contribute to mckaywrigley/ai-router-chat development by creating an account on GitHub.
Contenido
AI Router Chat
An AI chat app that utilizes advanced LLM model routing powered by Not Diamond.
Includes an "Arena mode" where you can dynamically improve your model router.
Demo
See the latest demo here.
Sponsor
If you find AI Router Chat useful, please consider sponsoring us to support my open-source work :)
Requirements
Get a Not Diamond API key from Not Diamond.
You'll also need API keys from each LLM provider (OpenAI, Anthropic, Groq, Perplexity, Google) that you'd like to use.
Running Locally
1. Clone Repo
git clone https://github.com/mckaywrigley/ai-router-chat.git
2. Provide API Keys
Create a .env file in the root of the repo with these values:
DATABASE_URL= NOT_DIAMOND_API_KEY= OPENAI_API_KEY= ANTHROPIC_API_KEY= GOOGLE_GENERATIVE_AI_API_KEY= GROQ_API_KEY= PERPLEXITY_API_KEY=
3. Install Dependencies
4. Setup DB
Set up a new project on Supabase.
Copy the connection string (DB URL) from the Supabase output, and paste it into the above .env file.
Once you have the DB URL, run the following command to create the database and tables:
5. Run App
Deploying
Deploy to Vercel in 1 click:
Fuente: GitHub
