We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 609a67b commit f265192Copy full SHA for f265192
2 files changed
.github/workflows/test-github-models.yaml
@@ -8,6 +8,7 @@ on:
8
# Also run when chat.py files are modified
9
paths:
10
- 'chat.py'
11
+ - 'reasoning.py'
12
- 'spanish/chat.py'
13
- 'requirements.txt'
14
- '.github/workflows/test-github-models.yaml'
chat.py
@@ -12,10 +12,9 @@
token_provider = azure.identity.get_bearer_token_provider(
azure.identity.DefaultAzureCredential(), "https://cognitiveservices.azure.com/.default"
)
15
- client = openai.AzureOpenAI(
16
- api_version=os.environ["AZURE_OPENAI_VERSION"],
17
- azure_endpoint=os.environ["AZURE_OPENAI_ENDPOINT"],
18
- azure_ad_token_provider=token_provider,
+ client = openai.OpenAI(
+ base_url=os.environ["AZURE_OPENAI_ENDPOINT"],
+ api_key=token_provider,
19
20
MODEL_NAME = os.environ["AZURE_OPENAI_DEPLOYMENT"]
21
0 commit comments