Skip to content

Commit 7b9dff6

Browse files
committed
feat: update doc
1 parent 2e6fdaa commit 7b9dff6

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

README.md

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,33 @@ API Key: This value can be found in the **Keys & Endpoint** section when examini
2222
### Use Docker
2323

2424
````shell
25-
docker run -d --name=azure-openai-proxy stulzq/azure-openai-proxy
25+
docker run -d -p 8080:8080 --name=azure-openai-proxy \
26+
--env AZURE_OPENAI_ENDPOINT=your_azure_endpoint \
27+
--env AZURE_OPENAI_API_VER=your_azure_api_ver \
28+
--env AZURE_OPENAI_DEPLOY=your_azure_deploy \
29+
stulzq/azure-openai-proxy:latest
30+
````
31+
32+
Call API:
33+
34+
````shell
35+
curl --location --request POST 'localhost:8080/v1/chat/completions' \
36+
-H 'Authorization: Bearer <Azure OpenAI Key>' \
37+
-H 'Content-Type: application/json' \
38+
-d '{
39+
"max_tokens": 1000,
40+
"model": "gpt-3.5-turbo",
41+
"temperature": 0.8,
42+
"top_p": 1,
43+
"presence_penalty": 1,
44+
"messages": [
45+
{
46+
"role": "user",
47+
"content": "Hello"
48+
}
49+
],
50+
"stream": true
51+
}'
2652
````
2753

2854
### Use ChatGPT-Web

0 commit comments

Comments
 (0)