Skip to content

Commit 6e630d6

Browse files
committed
docs: update deno link in more places (#431)
1 parent 18b04e8 commit 6e630d6

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,14 @@ yarn add openai
1818

1919
You can import in Deno via:
2020

21+
<!-- x-release-please-start-version -->
22+
2123
```ts
22-
import OpenAI from 'https://deno.land/x/openai';
24+
import OpenAI from 'https://deno.land/x/openai@4.15.4/mod.ts';
2325
```
2426

27+
<!-- x-release-please-end -->
28+
2529
## Usage
2630

2731
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.

build-deno

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,16 @@ set -exuo pipefail
55
rm -rf deno; mkdir deno
66
cp -rp src/* deno
77

8-
PACKAGE_VERSION=$(node -p 'require("./package.json").version')
9-
8+
# x-release-please-start-version
109
cat << EOF > deno/README.md
1110
# OpenAI Node API Library - Deno build
1211
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.
1413
1514
Usage:
1615
1716
\`\`\`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";
1918
2019
const client = new OpenAI();
2120
\`\`\`
@@ -26,6 +25,7 @@ Note that in many Deno environments, you can also do this:
2625
import OpenAI from "npm:openai";
2726
\`\`\`
2827
EOF
28+
# x-release-please-end
2929

3030
rm deno/_shims/auto/*-node.ts
3131
for dir in deno/_shims deno/_shims/auto; do

0 commit comments

Comments
 (0)