Skip to content

Commit dd8f817

Browse files
committed
update
1 parent 6503ab6 commit dd8f817

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

articles/ai-services/openai/includes/chatgpt-javascript.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,10 @@ const dotenv = require("dotenv");
6262
dotenv.config();
6363

6464
// You will need to set these environment variables or edit the following values
65-
const endpoint = process.env["ENDPOINT"] || "<endpoint>";
66-
const apiKey = process.env["AZURE_API_KEY"] || "<api key>";
65+
const endpoint = process.env["AZURE_OPENAI_ENDPOINT"] || "<endpoint>";
66+
const apiKey = process.env["AZURE_OPENAI_API_KEY"] || "<api key>";
6767
const apiVersion = "2024-05-01-preview";
68-
const deployment = "gpt-4o"; //The deployment name for your completions API model. The instruct model is the only new model that supports the legacy API.
69-
68+
const deployment = "gpt-4o"; //This must match your deployment name.
7069
require("dotenv/config");
7170

7271
async function main() {

articles/ai-services/openai/includes/javascript.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ const dotenv = require("dotenv");
6060
dotenv.config();
6161

6262
// You will need to set these environment variables or edit the following values
63-
const endpoint = process.env["ENDPOINT"] || "<endpoint>";
64-
const apiKey = process.env["AZURE_API_KEY"] || "<api key>";
63+
const endpoint = process.env["AZURE_OPENAI_ENDPOINT"] || "<endpoint>";
64+
const apiKey = process.env["AZURE_OPENAI_API_KEY"] || "<api key>";
6565
const apiVersion = "2024-04-01-preview";
6666
const deployment = "gpt-35-turbo-instruct"; //The deployment name for your completions API model. The instruct model is the only new model that supports the legacy API.
6767

0 commit comments

Comments
 (0)