You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/ai-services/openai/includes/use-your-data-javascript.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,11 @@ Install the Azure OpenAI client and Azure Identity libraries for JavaScript with
29
29
npm install openai @azure/identity @azure/openai
30
30
```
31
31
32
+
<<<<<<< HEAD
32
33
The `@azure/openai` dependency is included to extend the OpenAI model for the `data_sources` property. This import is only necessary for TypeScript.
34
+
=======
35
+
The `@azure/openai/types` dependency is included to extend the Azure OpenAI model for the `data_sources` property. This import is only necessary for TypeScript.
36
+
>>>>>>> 873d1a85c45aa613e26bca472b6f80476dbcd47e
33
37
34
38
#### [JavaScript](#tab/javascript)
35
39
@@ -66,7 +70,7 @@ Your app's _package.json_ file will be updated with the dependencies.
66
70
function getClient():AzureOpenAI {
67
71
returnnewAzureOpenAI({
68
72
endpoint,
69
-
apiKey: apiKey,
73
+
apiKey,
70
74
deployment: deploymentName,
71
75
apiVersion,
72
76
});
@@ -160,7 +164,7 @@ Your app's _package.json_ file will be updated with the dependencies.
0 commit comments