Skip to content

Commit f995594

Browse files
committed
code update
1 parent e002451 commit f995594

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

articles/ai-services/openai/includes/use-your-data-javascript.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,12 @@ const searchKey = process.env["AZURE_AI_SEARCH_API_KEY"];
4646
const searchIndex = process.env["AZURE_AI_SEARCH_INDEX"];
4747
const deploymentId = process.env["AZURE_OPEN_AI_DEPLOYMENT_ID"];
4848

49+
4950
async function main(){
5051
const client = new OpenAIClient(endpoint, new AzureKeyCredential(azureApiKey));
5152

5253
const messages = [
53-
{ role: "user", content: "What are the differences between Azure Machine Learning and Azure AI services?" },
54+
{ role: "user", content: "Tell me something interesting" },
5455
];
5556

5657
console.log(`Message: ${messages.map((m) => m.content).join("\n")}`);
@@ -79,7 +80,7 @@ async function main(){
7980
}
8081
}
8182
}
82-
console.log(chatGptAnswer);
83+
console.log(response);
8384
}
8485

8586
main().catch((err) => {

0 commit comments

Comments
 (0)