Skip to content

Latest commit

 

History

History
61 lines (45 loc) · 1.69 KB

README.md

File metadata and controls

61 lines (45 loc) · 1.69 KB

Open Chat Playground

Desktop

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

Setup

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.

Connecting to Other API Providers (Cohere, Groq, Anthropic)

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.

Example

# 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

License

This project is licensed under the MIT License.