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
In a console window (such as cmd, PowerShell, or Bash), create a new directory for your app, and navigate to it. Then run the `npm init` command to create a node application with a _package.json_ file.
35
-
36
-
```console
37
-
npm init
38
-
```
33
+
In a console window (such as cmd, PowerShell, or Bash), create a new directory for your app, and navigate to it.
39
34
40
35
## Install the client library
41
36
42
-
Install the Azure OpenAI client library for JavaScript with npm:
37
+
Install the Azure OpenAI client library for JavaScript with npm from within the context of your new directory:
43
38
44
39
```console
45
-
npm install @azure/openai
40
+
npm install openai @azure/openai dotenv
46
41
```
47
42
48
43
Your app's _package.json_ file will be updated with the dependencies.
@@ -56,25 +51,31 @@ Open a command prompt where you created the new project, and create a new file n
constdeploymentId="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.
0 commit comments