GitPedia

Open chat playground

Open Chat Playground (OCP) is a web UI that is able to connect virtually any LLM from any platform.

From aliencubeยทUpdated April 11, 2026ยทView on GitHubยท

Open Chat Playground (OCP) is a web UI that is able to connect virtually any LLM from any platform. The project is written primarily in C#, distributed under the MIT License license, first published in 2025. Key topics include: ai, amazon-bedrock, anthropic, azure, azure-ai-foundry.

<img src="./assets/icon-transparent.svg" alt="Icon for OpenChat Playground" width="32" /> Open Chat Playground

Open Chat Playground (OCP) is a web UI that is able to connect virtually any LLM from any platform.

OpenChat Playground - hero image

Supported platforms

Prerequisites

Getting started

Get the repository ready

  1. Login to GitHub.

    bash
    gh auth login
  2. Check login status.

    bash
    gh auth status
  3. Fork this repository to your account and clone the forked repository to your local machine.

    bash
    gh repo fork aliencube/open-chat-playground --clone --default-branch-only
  4. Navigate to the cloned repository.

    bash
    cd open-chat-playground

Run on local machine

Run in local container

Run on Azure

Run as API

  1. Run the app - either locally or remotely.

  2. Navigate to {{APP_URL}}/openapi.json to see the OpenAPI doc. NOTE: the OpenAPI doc is only able to see on a local machine, not on a remote instance.

  3. Send a POST request to {{APP_URL}}/api/chat/responses with a request payload like:

    json
    [ { "role": "system", "message": "You're a friendly assistant" }, { "role": "user", "message": "Why is the sky blue?" } ]
  4. Confirm the response payload like:

    jsonc
    [ { "role": "assistant", "message": "Because " }, { "role": "assistant", "message": "It's " }, { "role": "assistant", "message": "... " }, ... { "role": "assistant", "message": "... " } ]

Run tests

Build app

  1. Make sure you are at the repository root.

    bash
    cd $REPOSITORY_ROOT
  2. Build the app.

    bash
    dotnet restore && dotnet build

Unit tests

  1. Make sure you are at the repository root.

    bash
    cd $REPOSITORY_ROOT
  2. Run tests.

    bash
    dotnet test --filter "Category=UnitTest"

Integration tests

  1. Make sure you have the Ollama server up and running on your local machine.

    bash
    ollama serve ollama run hf.co/Qwen/Qwen3-0.6B-GGUF
  2. Make sure you are at the repository root.

    bash
    cd $REPOSITORY_ROOT
  3. Install playwright.

    bash
    pwsh $REPOSITORY_ROOT/test/OpenChat.PlaygroundApp.Tests/bin/Debug/net{YOUR_VERSION}/playwright.ps1 install
  4. Run the app.

    bash
    dotnet run --project $REPOSITORY_ROOT/src/OpenChat.PlaygroundApp -- --connector-type HuggingFace
  5. Run tests.

    bash
    # With LLM provider dotnet test --filter "Category=IntegrationTest"
    bash
    # Without LLM provider dotnet test --filter "Category=IntegrationTest & Category!=LLMRequired"

Configure GitHub Actions for CI/CD Pipeline

  1. Make sure you are at the repository root.

    bash
    cd $REPOSITORY_ROOT
  2. Make sure you've logged in to Azure.

    bash
    azd auth login --check-status
  3. Run pipeline config.

    bash
    azd pipeline config
  4. Answer the question below:

    • ? Select how to authenticate the pipeline to Azure ๐Ÿ‘‰ Federated Service Principal (SP + OIDC)
    • ? Would you like to commit and push your local changes to start the configured CI pipeline? ๐Ÿ‘‰ No
  5. Once the configuration is done, push a new commit to GitHub to run the GitHub Actions workflow.

Contributors

Showing top 12 contributors by commit count.

View all contributors on GitHub โ†’

This article is auto-generated from aliencube/open-chat-playground via the GitHub API.Last fetched: 6/13/2026