Skip to content

Commit bda8ada

Browse files
committed
Fix#540: Renamed AZURE_OPENAI_KEY to AZURE_OPENAI_API_KEY to use a consistent naming schema
1 parent f857c60 commit bda8ada

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

11-integrating-with-function-calling/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Let's say we want to create a database of student data so we can suggest the rig
6161
load_dotenv()
6262

6363
client = AzureOpenAI(
64-
api_key=os.environ['AZURE_OPENAI_KEY'], # this is also the default, it can be omitted
64+
api_key=os.environ['AZURE_OPENAI_API_KEY'], # this is also the default, it can be omitted
6565
api_version = "2023-07-01-preview"
6666
)
6767

11-integrating-with-function-calling/python/aoai-assignment.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@
165165
"load_dotenv()\n",
166166
"\n",
167167
"client = AzureOpenAI(\n",
168-
" api_key=os.environ['AZURE_OPENAI_KEY'], # this is also the default, it can be omitted\n",
168+
" api_key=os.environ['AZURE_OPENAI_API_KEY'], # this is also the default, it can be omitted\n",
169169
" api_version = \"2023-07-01-preview\"\n",
170170
" )\n",
171171
"\n",

11-integrating-with-function-calling/translations/ja-jp/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ from dotenv import load_dotenv
6161
load_dotenv()
6262

6363
client = AzureOpenAI(
64-
api_key=os.environ['AZURE_OPENAI_KEY'], # これもデフォルトで省略できます
64+
api_key=os.environ['AZURE_OPENAI_API_KEY'], # これもデフォルトで省略できます
6565
api_version = "2023-07-01-preview"
6666
)
6767

11-integrating-with-function-calling/translations/ko/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function calling은 다음과 같은 제한 사항을 극복하기 위한 Azure
6161
load_dotenv()
6262

6363
client = AzureOpenAI(
64-
api_key=os.environ['AZURE_OPENAI_KEY'], # 이것은 기본값이며, 생략 가능합니다.
64+
api_key=os.environ['AZURE_OPENAI_API_KEY'], # 이것은 기본값이며, 생략 가능합니다.
6565
api_version = "2023-07-01-preview"
6666
)
6767

11-integrating-with-function-calling/translations/tw/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
load_dotenv()
6262

6363
client = AzureOpenAI(
64-
api_key=os.environ['AZURE_OPENAI_KEY'], # 這也是預設值,可以省略
64+
api_key=os.environ['AZURE_OPENAI_API_KEY'], # 這也是預設值,可以省略
6565
api_version = "2023-07-01-preview"
6666
)
6767

11-integrating-with-function-calling/typescript/function-app/src/main.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import * as dotenv from "dotenv";
55
dotenv.config();
66

77
const endpoint = process.env.AZURE_OPENAI_ENDPOINT || "";
8-
const azureApiKey = process.env.AZURE_OPENAI_KEY || "";
8+
const azureApiKey = process.env.AZURE_OPENAI_API_KEY || "";
99
const bingMapsBaseUrl = process.env.BING_MAPS_BASE_URL || "";
1010
const bingApiKey = process.env.BING_API_KEY || "";
1111

0 commit comments

Comments
 (0)