Skip to content

Commit

Permalink
feat: docker compose for azure
Browse files Browse the repository at this point in the history
  • Loading branch information
soulteary committed Dec 26, 2023
1 parent 5c27e11 commit 88065f0
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions example/docker-compose.azure.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
version: "3"

services:
amazing-openai-api:
image: soulteary/amazing-openai-api:v0.5.0
restart: always
ports:
- 8080:8080
environment:
- AZURE_ENDPOINT=https://<修改为你的部署名称>.openai.azure.com/
- AZURE_API_KEY=<修改为你的API KEY>
- AZURE_MODEL=gpt-4
# 模型名称映射,比如将请求中的 GPT 3.5 Turbo 映射为 GPT 4
- AZURE_MODEL_ALIAS=gpt-3.5-turbo:gpt-4
logging:
options:
max-size: 1m

0 comments on commit 88065f0

Please sign in to comment.