Open Chat Playground is a single page application for experimenting with OpenAI /v1/chat/completion
compatible web servers.
It provides a few additional features over OpenAI's Chat Playground including:
- Markdown Rendering
- Tool Calling
- Image Content
- Ability to call other backends
- Dark Mode
Try out the hosted version
git clone git@github.com:abetlen/open-chat-playground.git
cd open-chat-playground
npm install
npm run dev
Then just visit http://localhost:3000/open-chat-playground in your browser.
Many hosted services do not provide an OpenAI-compatible API though it's still possible to connect to them. To connect to these providers you can use the LiteLLMs OpenAI Proxy and then set the url in the Chat Playground settings.
# litellm.config.yaml
model_list:
- model_name: command-r
litellm_params:
model: command-r
api_key: "os.environ/COHERE_API_KEY"
- model_name: groq
litellm_params:
model: groq/llama2-70b-4096
api_key: "os.environ/GROQ_API_KEY"
pip install litellm
litellm --config litellm.config.yaml
This project is licensed under the MIT License.