File tree Expand file tree Collapse file tree 6 files changed +30
-30
lines changed
Expand file tree Collapse file tree 6 files changed +30
-30
lines changed Original file line number Diff line number Diff line change 1212First, start the dev agent:
1313
1414``` bash
15- export AZURE_MODEL=csg-gpt4
16- export AZURE_API_BASE=https://opencsg-us.openai.azure.com
17- export AZURE_API_VERSION=2024-02-15-preview
18- export AZURE_API_KEY=< YOUR API KEY >
15+ export AZURE_MODEL=" your-model-name "
16+ export AZURE_API_BASE=" your-api-base "
17+ export AZURE_API_VERSION=" your-api-version "
18+ export AZURE_API_KEY=" your-api-key "
1919
2020python examples/app-builder/dev.py
2121```
2222
2323And then start the qa agent in the second terminal:
2424
2525``` bash
26- export AZURE_MODEL=csg-gpt4
27- export AZURE_API_BASE=https://opencsg-us.openai.azure.com
28- export AZURE_API_VERSION=2024-02-15-preview
29- export AZURE_API_KEY=< YOUR API KEY >
26+ export AZURE_MODEL=" your-model-name "
27+ export AZURE_API_BASE=" your-api-base "
28+ export AZURE_API_VERSION=" your-api-version "
29+ export AZURE_API_KEY=" your-api-key "
3030
3131python examples/app-builder/qa.py
3232```
Original file line number Diff line number Diff line change @@ -25,10 +25,10 @@ References:
2525First, start a server in one terminal:
2626
2727` ` ` bash
28- export AZURE_MODEL=csg-gpt4
29- export AZURE_API_BASE=https://opencsg-us.openai.azure.com
30- export AZURE_API_VERSION=2024-02-15-preview
31- export AZURE_API_KEY=< YOUR API KEY >
28+ export AZURE_MODEL=" your-model-name "
29+ export AZURE_API_BASE=" your-api-base "
30+ export AZURE_API_VERSION=" your-api-version "
31+ export AZURE_API_KEY=" your-api-key "
3232
3333python examples/using-autogen/autogen.py
3434` ` `
Original file line number Diff line number Diff line change 1919
2020
2121az_model_client = AzureOpenAIChatCompletionClient (
22- model = "csg-gpt4" ,
23- api_version = os .getenv ("AZURE_API_VERSION" ),
22+ model = os .getenv ("AZURE_MODEL" ),
2423 azure_endpoint = os .getenv ("AZURE_API_BASE" ),
24+ api_version = os .getenv ("AZURE_API_VERSION" ),
2525 api_key = os .getenv ("AZURE_API_KEY" ),
2626 model_capabilities = {
2727 "vision" : True ,
Original file line number Diff line number Diff line change @@ -20,10 +20,10 @@ python examples/mcp/server.py
2020Then start the MCP agent in another terminal:
2121
2222``` bash
23- export AZURE_MODEL=csg-gpt4
24- export AZURE_API_BASE=https://opencsg-us.openai.azure.com
25- export AZURE_API_VERSION=2024-02-15-preview
26- export AZURE_API_KEY=< YOUR API KEY >
23+ export AZURE_MODEL=" your-model-name "
24+ export AZURE_API_BASE=" your-api-base "
25+ export AZURE_API_VERSION=" your-api-version "
26+ export AZURE_API_KEY=" your-api-key "
2727
2828python examples/mcp/agent.py
2929```
Original file line number Diff line number Diff line change 1414Run the OpenCSG triage agent:
1515
1616``` bash
17- export AZURE_MODEL=csg-gpt4
18- export AZURE_API_BASE=https://opencsg-us.openai.azure.com
19- export AZURE_API_VERSION=2024-02-15-preview
20- export AZURE_API_KEY=< YOUR API KEY >
17+ export AZURE_MODEL=" your-model-name "
18+ export AZURE_API_BASE=" your-api-base "
19+ export AZURE_API_VERSION=" your-api-version "
20+ export AZURE_API_KEY=" your-api-key "
2121
2222python examples/opencsg/opencsg.py team1
2323```
@@ -36,10 +36,10 @@ You will not get any useful information since the triage agent itself has no kno
3636Run the CSGHub agent:
3737
3838``` bash
39- export AZURE_MODEL=csg-gpt4
40- export AZURE_API_BASE=https://opencsg-us.openai.azure.com
41- export AZURE_API_VERSION=2024-02-15-preview
42- export AZURE_API_KEY=< YOUR API KEY >
39+ export AZURE_MODEL=" your-model-name "
40+ export AZURE_API_BASE=" your-api-base "
41+ export AZURE_API_VERSION=" your-api-version "
42+ export AZURE_API_KEY=" your-api-key "
4343
4444python examples/opencsg/csghub.py team1.csghub
4545```
Original file line number Diff line number Diff line change 1212First, start a server in one terminal:
1313
1414``` bash
15- export AZURE_MODEL=csg-gpt4
16- export AZURE_API_BASE=https://opencsg-us.openai.azure.com
17- export AZURE_API_VERSION=2024-02-15-preview
18- export AZURE_API_KEY=< YOUR API KEY >
15+ export AZURE_MODEL=" your-model-name "
16+ export AZURE_API_BASE=" your-api-base "
17+ export AZURE_API_VERSION=" your-api-version "
18+ export AZURE_API_KEY=" your-api-key "
1919
2020python examples/translator/translator.py
2121```
You can’t perform that action at this time.
0 commit comments