🚀 azure-openai-proxy Copy From reflare-demo
npm install -g wrangler
wrangler login
npm install && npm run build
npm run build && npm run dev
Parameters | Description | Default Value |
---|---|---|
AZURE_OPENAI_ENDPOINT | Azure OpenAI Endpoint, usually looks like https://{custom}.openai.azure.com. Required. | |
AZURE_OPENAI_APIVERSION | Azure OpenAI API version. Default is 2023-03-15-preview. | 2023-03-15-preview |
AZURE_OPENAI_MODEL_MAPPER | A comma-separated list of model=deployment pairs. Maps model names to deployment names. For example, gpt-3.5-turbo={azure_deployment_name} . |
gpt-3.5-turbo=gpt-35-turbo,gpt-4=gpt-4,gpt-4-32k=gpt-4-32k |
npm run deploy
modify Route
in wrangler.toml
routes = [
{ pattern = "Your Custom Domain", custom_domain = true },
]
- Github: @billzhuang
Give a ⭐️ if this project helped you!