From d9eee1346f841fd8617bba01641b6dbc5d936095 Mon Sep 17 00:00:00 2001 From: Alison Felix Date: Tue, 15 Oct 2024 18:45:19 +0100 Subject: [PATCH] Update load-and-vectorize-data.js Fixed typo --- 04-vector-search/node.js/load-and-vectorize-data.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/04-vector-search/node.js/load-and-vectorize-data.js b/04-vector-search/node.js/load-and-vectorize-data.js index fe7ea9e..715133c 100644 --- a/04-vector-search/node.js/load-and-vectorize-data.js +++ b/04-vector-search/node.js/load-and-vectorize-data.js @@ -40,7 +40,7 @@ async function main() { const completion_deployment = process.env.OpenAICompletionDeploymentName; // Initialize Azure OpenAI client - const azureOpenAIClient = new AzureOpenAI({endpoint: ai_endpoint, apiKey: ai_key, apiVersion: apiVersion}); + const AzureOpenAIClient = new AzureOpenAI({endpoint: ai_endpoint, apiKey: ai_key, apiVersion: apiVersion}); // Replace placeholders in the connection string with actual values cosmosdb_connection_string = cosmosdb_connection_string.replace("", encodeURIComponent(cosmos_mongo_user));