File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -18,10 +18,14 @@ yarn add openai
18
18
19
19
You can import in Deno via:
20
20
21
+ <!-- x-release-please-start-version -->
22
+
21
23
``` ts
22
- import OpenAI from ' https://deno.land/x/openai' ;
24
+ import OpenAI from ' https://deno.land/x/openai@4.15.4/mod.ts ' ;
23
25
```
24
26
27
+ <!-- x-release-please-end -->
28
+
25
29
## Usage
26
30
27
31
The full API of this library can be found in [ api.md file] ( https://github.com/openai/openai-node/blob/master/api.md ) . The code below shows how to get started using the chat completions API.
Original file line number Diff line number Diff line change @@ -5,17 +5,16 @@ set -exuo pipefail
5
5
rm -rf deno; mkdir deno
6
6
cp -rp src/* deno
7
7
8
- PACKAGE_VERSION=$( node -p ' require("./package.json").version' )
9
-
8
+ # x-release-please-start-version
10
9
cat << EOF > deno/README.md
11
10
# OpenAI Node API Library - Deno build
12
11
13
- This is a build produced from https://github.com/openai/openai-node - please go there to read the source and docs, file issues, etc.
12
+ This is a build produced from https://github.com/openai/openai-node – please go there to read the source and docs, file issues, etc.
14
13
15
14
Usage:
16
15
17
16
\`\`\` ts
18
- import OpenAI from "https://deno.land/x/openai@$PACKAGE_VERSION /mod.ts";
17
+ import OpenAI from "https://deno.land/x/openai@4.15.4 /mod.ts";
19
18
20
19
const client = new OpenAI();
21
20
\`\`\`
@@ -26,6 +25,7 @@ Note that in many Deno environments, you can also do this:
26
25
import OpenAI from "npm:openai";
27
26
\`\`\`
28
27
EOF
28
+ # x-release-please-end
29
29
30
30
rm deno/_shims/auto/* -node.ts
31
31
for dir in deno/_shims deno/_shims/auto; do
You can’t perform that action at this time.
0 commit comments