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: README.md
+10-5Lines changed: 10 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -14,16 +14,21 @@ To learn how to use the OpenAI API, check out our [API Reference](https://platfo
14
14
npm install openai
15
15
```
16
16
17
-
You can also import from jsr:
17
+
### Installation from JSR
18
18
19
-
<!-- x-release-please-start-version -->
19
+
```sh
20
+
deno add jsr:@openai/openai
21
+
npx jsr add @openai/openai
22
+
```
23
+
24
+
These commands will make the module importable from the `@openai/openai` scope:
25
+
26
+
You can also [import directly from JSR](https://jsr.io/docs/using-packages#importing-with-jsr-specifiers) without an install step if you're using the Deno JavaScript runtime:
20
27
21
28
```ts
22
29
importOpenAIfrom'jsr:@openai/openai';
23
30
```
24
31
25
-
<!-- x-release-please-end -->
26
-
27
32
## Usage
28
33
29
34
The full API of this library can be found in [api.md file](api.md) along with many [code examples](https://github.com/openai/openai-node/tree/master/examples). The code below shows how to get started using the chat completions API.
@@ -622,7 +627,7 @@ TypeScript >= 4.5 is supported.
622
627
The following runtimes are supported:
623
628
624
629
- Node.js 18 LTS or later ([non-EOL](https://endoflife.date/nodejs)) versions.
625
-
- Deno v1.28.0 or higher, using `import OpenAI from "npm:openai"`.
0 commit comments