|  | 
 
| 对于AI爱好者来说,直接使用GPT很爽,利用Azure的OpenAI服务,套壳ChatGPT Next Web,直连体验GPT非常方便。 使用Docker Compose部署,配置文件如下:
 ```yaml
 version: "3.9"
 services:
 chatgpt-next-web:
 image: yidadaa/chatgpt-next-web
 container_name: chatgpt-next-web
 ports:
 - "39002:3000"
 environment:
 - CODE=XXXXXXXX
 - AZURE_API_VERSION=2024-04-01-preview
 - CUSTOM_MODELS=-all,+gpt-3.5-turbo
 - AZURE_API_KEY=xxxxxxxxxxxxxxxxxx9b47f0677xxxxxx
 - AZURE_URL=https://xxxxxxxxxx.openai.azure.com/openai/deployments/gpt-35-turbo
 - OPENAI_ORG_ID=xxxxxxx-xxxx-xxxxb89b-4a6fcd1xxxxxxxx
 - GOOGLE_API_KEY=xxxxxxxxxxxxxx_w-KYxxxxxxxxxE_mxxxxxx
 restart: unless-stopped
 ```
 其中,`AZURE_URL`的拼接需要特别注意:
 * `https://xxxxxxxx.openai.azure.com/` 是Azure OpenAI的终结点链接。
 * `openai/deployments/` 是固定部分。
 * `/gpt-35-turbo` 是创建模型的名称,例如使用GPT-4模型,则替换为`/gpt-4-turbo`。
 * 别忘了添加对应模型的参数,例如GPT-4的`CUSTOM_MODELS=-all,+gpt-3.5-turbo,gpt-4o`。
 | 
 |