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-5
Original file line number
Diff line number
Diff line change
@@ -12,16 +12,21 @@ The REST API documentation can be found on [platform.openai.com](https://platfor
12
12
npm install openai
13
13
```
14
14
15
-
You can also import from jsr:
15
+
### Installation from JSR
16
16
17
-
<!-- x-release-please-start-version -->
17
+
```sh
18
+
deno add jsr:@openai/openai
19
+
npx jsr add @openai/openai
20
+
```
21
+
22
+
These commands will make the module importable from the `@openai/openai` scope:
23
+
24
+
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:
18
25
19
26
```ts
20
27
importOpenAIfrom'jsr:@openai/openai';
21
28
```
22
29
23
-
<!-- x-release-please-end -->
24
-
25
30
## Usage
26
31
27
32
The full API of this library can be found in [api.md](api.md).
@@ -388,7 +393,7 @@ TypeScript >= 4.5 is supported.
388
393
The following runtimes are supported:
389
394
390
395
- Node.js 18 LTS or later ([non-EOL](https://endoflife.date/nodejs)) versions.
391
-
- Deno v1.28.0 or higher, using `import OpenAI from "npm:openai"`.
0 commit comments