Skip to content

Commit 5f1d783

Browse files
committed
chore: add documentation for azure openai
1 parent 8d719ef commit 5f1d783

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.env.azure-example

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
OPENAI_API_KEY=XXXX
2+
OPENAI_API_TYPE=azure
3+
OPENAI_BASE_URL=https://your-resource-name.openai.azure.com
4+
OPENAI_API_VERSION=2023-03-15-preview
5+
AZURE_OPENAI_DEPLOYMENT=your-model-deployment-name
6+
API_PORT=5010
7+
WEB_PORT=8080
8+
SNAKEMQ_PORT=8765

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ Set `OPENAI_BASE_URL` to change the OpenAI API endpoint that's being used (note
3737

3838
You can use the `.env.example` in the repository (make sure you `git clone` the repo to get the file first).
3939

40+
For Azure OpenAI Services, there are also other configurable variables like deployment name. See `.env.azure-example` for more information.
41+
Note that model selection on the UI is currently not supported for Azure OpenAI Services.
42+
4043
```
4144
cp .env.example .env
4245
vim .env

0 commit comments

Comments
 (0)