Skip to content

Commit 47b0fbc

Browse files
Merge pull request #245964 from Naveenommi-MSFT/patch-60
(AzureCXP) fixes MicrosoftDocs/azure-docs#112587
2 parents 01e1df8 + 565ba6e commit 47b0fbc

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)