Skip to content

Commit 9a4c876

Browse files
committed
chore: update trainer and docs
1 parent 3590258 commit 9a4c876

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

trainer/README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,20 @@ To deploy it, run:
2020
```bash
2121
azd auth login # if needed
2222
azd env new openai-trainer
23-
azd env set AZURE_OPENAI_LOCATION <location> # optional, default is eastus2
24-
azd env set AZURE_OPENAI_CAPACITY <tokens_per_minutes> # optional, default is 300
23+
azd env set AZURE_OPENAI_LOCATION <location> # optional, default is swedencentral
24+
azd env set AZURE_OPENAI_CAPACITY <tokens_per_minutes> # optional, default is 200
2525
azd up
2626
```
2727

2828
You'll get a container app instance URL of the proxy when the deployment is complete.
2929

30+
You can share it with your attendees so they can use it during the workshop with a link like this:
31+
32+
```
33+
https://aka.ms/ws/openai-rag-quarkus?vars=proxy:<proxy_url>
34+
```
35+
36+
3037
## During the workshop
3138

3239
Share this URL with your attendees, and make them run this command **before** their provision their own infrastructure (if they already did it, they'll just have to provision again):

trainer/infra/main.parameters.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"value": "${AZURE_OPENAI_LOCATION=swedencentral}"
1919
},
2020
"openAiCapacity": {
21-
"value": "${AZURE_OPENAI_CAPACITY=300}"
21+
"value": "${AZURE_OPENAI_CAPACITY=200}"
2222
},
2323
"chatGptDeploymentName": {
2424
"value": "${AZURE_OPENAI_CHATGPT_DEPLOYMENT=gpt-35-turbo}"

trainer/test.http

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
@api_host = http://localhost:3000
77

88
# Chat with the bot
9-
POST {{api_host}}/openai/deployments/chat/chat/completions?api-version=2024-02-01
9+
POST {{api_host}}/openai/deployments/gpt-35-turbo/chat/completions?api-version=2024-02-01
1010
Content-Type: application/json
1111
api-key: toto
1212

@@ -26,7 +26,7 @@ api-key: toto
2626
###
2727

2828
# Chat with the bot using streaming
29-
POST {{api_host}}/openai/deployments/chat/chat/completions?api-version=2024-02-01
29+
POST {{api_host}}/openai/deployments/gpt-35-turbo/chat/completions?api-version=2024-02-01
3030
content-type: application/json
3131
api-key: toto
3232

0 commit comments

Comments
 (0)