Skip to content

This provides a proxy server application of Azure OpenAI Service API that round-robins multiple Azure OpenAI Service instances.

License

Notifications You must be signed in to change notification settings

AOAI-TeamKIM/azure-openai-sdk-proxy

 
 

Repository files navigation

Azure OpenAI Service Proxy

This provides a proxy server application of Azure OpenAI Service API that round-robins multiple Azure OpenAI Service instances.

Prerequisites

Getting Started

  1. Login to Azure and GitHub.

    # Login to Azure Dev CLI
    azd auth login
    
    # Login to Azure CLI
    az login
    
    # Login to GitHub
    gh auth login
  2. Check login status.

    # Azure Dev CLI
    azd auth login --check-status
    
    # Azure CLI
    az account show
    
    # GitHub CLI
    gh auth status
  3. Fork this repository to your account and clone the forked repository to your local machine.

    gh repo fork aliencube/azure-openai-sdk-proxy --clone --default-branch-only
  4. Run the following commands in order to provision and deploy the app.

    # zsh/bash
    AZURE_ENV_NAME="proxy$((RANDOM%9000+1000))"
    azd init -e $AZURE_ENV_NAME
    azd up
    
    # PowerShell
    $AZURE_ENV_NAME = "proxy$(Get-Random -Minimum 1000 -Maximum 9999)"
    azd init -e $AZURE_ENV_NAME
    azd up

About

This provides a proxy server application of Azure OpenAI Service API that round-robins multiple Azure OpenAI Service instances.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 48.0%
  • PowerShell 30.8%
  • HTML 10.0%
  • CSS 9.1%
  • Shell 1.7%
  • Dockerfile 0.4%