You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Azure OpenAI Proxy 是一个 OpenAI API 的代理工具,能将 OpenAI API 请求转为 Azure OpenAI API 请求,从而让只支持 OpenAI 的应用程序无缝使用 Azure OpenAI。
5
+
Azure OpenAI Proxy is a tool that transforms OpenAI API requests into Azure OpenAI API requests, allowing OpenAI-compatible applications to seamlessly use Azure Open AI.
6
6
7
-
## 使用条件
7
+
## Prerequisites
8
8
9
-
你需要有一个 Azure OpenAI 账户才能使用 Azure OpenAI Proxy。
9
+
An Azure OpenAI account is required to use Azure OpenAI Proxy.
10
10
11
-
## Azure 部署
11
+
## Azure Deployment
12
12
13
13
[](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fscalaone%2Fazure-openai-proxy%2Fmain%2Fdeploy%2Fazure-deploy.json)
2. Clone the repository in the command line window.
35
+
3. Run `npm install` to install the dependencies.
36
+
4. Run `npm start` to start the application.
37
+
5. Use the script below for testing. Replace `AZURE_RESOURCE_ID`, `AZURE_MODEL_DEPLOYMENT`, and `AZURE_API_KEY` before running. The default value for `AZURE_API_VERSION` is `2023-05-15` and is optional.
2.Update the `OPENAI_API_KEY` environment variable with `AZURE_RESOURCE_ID:AZURE_MODEL_DEPLOYMENT:AZURE_API_KEY`. Alternatively, update the OPENAI_API_KEY value in the docker-compose.yml file directly.
79
+
3.Navigate to the directory containing the `docker-compose.yml` file for the application you want to test.
80
+
4.Execute the build command: `docker-compose build`.
81
+
5.Start the service: `docker-compose up -d`.
82
+
6.Access the application locally using the port defined in the docker-compose.yml file. For example, visit http://localhost:3000.
Azure OpenAI Proxy 是一个 OpenAI API 的代理工具,能将 OpenAI API 请求转为 Azure OpenAI API 请求,从而让只支持 OpenAI 的应用程序无缝使用 Azure OpenAI。
6
+
7
+
## 使用条件
8
+
9
+
你需要有一个 Azure OpenAI 账户才能使用 Azure OpenAI Proxy。
10
+
11
+
## Azure 部署
12
+
13
+
[](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fscalaone%2Fazure-openai-proxy%2Fmain%2Fdeploy%2Fazure-deploy.json)
0 commit comments