Skip to content

Commit 565ba6e

Browse files
(AzureCXP) fixes MicrosoftDocs/azure-docs#112587
We made chnages in no: 38, 39, 40, 41 From: openai.api_key = os.getenv("AZURE_OPENAI_ENDPOINT") openai.api_version = "2023-07-01-preview" openai.api_type = "azure" openai.api_base = os.getenv("AZURE_OPENAI_KEY") To: openai.api_key = os.getenv("AZURE_OPENAI_KEY") openai.api_version = "2023-07-01-preview" openai.api_type = "azure" openai.api_base = os.getenv("AZURE_OPENAI_ENDPOINT")
1 parent 768eaef commit 565ba6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/ai-services/openai/how-to/function-calling.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ When functions are provided, by default the `function_call` will be set to `"aut
3535
import os
3636
import openai
3737

38-
openai.api_key = os.getenv("AZURE_OPENAI_ENDPOINT")
38+
openai.api_key = os.getenv("AZURE_OPENAI_KEY")
3939
openai.api_version = "2023-07-01-preview"
4040
openai.api_type = "azure"
41-
openai.api_base = os.getenv("AZURE_OPENAI_KEY")
41+
openai.api_base = os.getenv("AZURE_OPENAI_ENDPOINT")
4242

4343
messages= [
4444
{"role": "user", "content": "Find beachfront hotels in San Diego for less than $300 a month with free breakfast."}

0 commit comments

Comments
 (0)