File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
articles/ai-services/openai/includes Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -62,11 +62,10 @@ const dotenv = require("dotenv");
62
62
dotenv .config ();
63
63
64
64
// 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>" ;
67
67
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.
70
69
require (" dotenv/config" );
71
70
72
71
async function main () {
Original file line number Diff line number Diff line change @@ -60,8 +60,8 @@ const dotenv = require("dotenv");
60
60
dotenv .config ();
61
61
62
62
// 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>" ;
65
65
const apiVersion = " 2024-04-01-preview" ;
66
66
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.
67
67
You can’t perform that action at this time.
0 commit comments