Skip to content

Commit 98f26c2

Browse files
committed
Fix deployment url 404
1 parent 6e32dc2 commit 98f26c2

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

README.en-US.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ You must have an Azure OpenAI account to use the Azure OpenAI Proxy.
1010

1111
## Deploy to Azure
1212

13-
[![Deploy to Azure](https://aka.ms/deploytoazurebutton)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fscalaone%2Fazure-openai-proxy%2Fdeploy%2Fazure-deploy.json)
13+
[![Deploy to Azure](https://aka.ms/deploytoazurebutton)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fscalaone%2Fazure-openai-proxy%2Fmain%2Fdeploy%2Fazure-deploy.json)
14+
1415
## Docker Deployment
16+
1517
`docker run -d -p 3000:3000 scalaone/azure-openai-proxy`
1618

1719
## Local Running and Testing, Command Line Method
@@ -20,7 +22,7 @@ You must have an Azure OpenAI account to use the Azure OpenAI Proxy.
2022
2. Clone the code in the command line window.
2123
3. Run `npm install` to install dependencies.
2224
4. Run `npm start` to start the application.
23-
5. Run the script below for testing, replacing `YOUR_RESOURCE_ID`, `YOUR_MODEL_DEPLOYMENT`, and `YOUR_API_KEY` before running it, `AZURE_API_VERSION` is optional and the default value is 2023-03-15-preview..
25+
5. Run the script below for testing, replacing `YOUR_RESOURCE_ID`, `YOUR_MODEL_DEPLOYMENT`, and `YOUR_API_KEY` before running it, `AZURE_API_VERSION` is optional and the default value is `2023-03-15-preview`.
2426
```bash
2527
curl -X "POST" "http://localhost:3000/v1/chat/completions" \
2628
-H 'Authorization: YOUR_RESOURCE_ID:YOUR_MODEL_DEPLOYMENT:YOUR_API_KEY:AZURE_API_VERSION' \
@@ -50,7 +52,7 @@ curl -X "POST" "http://localhost:3000/v1/chat/completions" \
5052
4. Start service: `run docker-compose up -d`
5153
5. Launch `http://localhost:3000`
5254

53-
Frequently Asked Questions
55+
## Frequently Asked Questions
5456

5557
Q: What is `YOUR_RESOURCE_ID`,`YOUR_MODEL_DEPLOYMENT`,`YOUR_API_KEY`?
5658

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@
1010

1111
## Azure部署
1212

13-
[![Deploy to Azure](https://aka.ms/deploytoazurebutton)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fscalaone%2Fazure-openai-proxy%2Fdeploy%2Fazure-deploy.json)
13+
[![Deploy to Azure](https://aka.ms/deploytoazurebutton)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fscalaone%2Fazure-openai-proxy%2Fmain%2Fdeploy%2Fazure-deploy.json)
14+
1415
## Docker Deployment
16+
1517
`docker run -d -p 3000:3000 scalaone/azure-openai-proxy`
1618

1719
## 本地运行和测试,命令行方式
@@ -45,12 +47,12 @@ curl -X "POST" "http://localhost:3000/v1/chat/completions" \
4547
## 本地运行和测试,使用WebChat测试streaming
4648

4749
1. 克隆代码到命令行窗口
48-
2. 更新 `docker-compose.yml` 文件中第九行的 `OPENAI_API_KEY` 环境变量,YOUR_RESOURCE_ID:gpt-35-turbo|YOUR_MODEL_DEPLOYMENT,gpt-4|YOUR_MODEL_DEPLOYMENT:YOUR_API_KEY
50+
2. 更新 `docker-compose.yml` 文件中第九行的 `OPENAI_API_KEY` 环境变量,换成`YOUR_RESOURCE_ID:YOUR_MODEL_DEPLOYMENT:YOUR_API_KEY`
4951
3. 执行构建:运行 `docker-compose build`
5052
4. 启动服务:运行 `docker-compose up -d`
5153
5. 运行`http://localhost:3000`
5254

53-
常见问题
55+
## 常见问题
5456

5557
Q:什么是`YOUR_RESOURCE_ID``YOUR_MODEL_DEPLOYMENT``YOUR_API_KEY`
5658

0 commit comments

Comments
 (0)