Skip to content

Commit 9180285

Browse files
Stainless Botstainless-app[bot]
authored andcommitted
fix: don't require deno to run build-deno (#1167)
1 parent f5260ff commit 9180285

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scripts/build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ node scripts/utils/postprocess-files.cjs
5050
(cd dist && node -e 'require("openai")')
5151
(cd dist && node -e 'import("openai")' --input-type=module)
5252

53-
if [ "${OPENAI_DISABLE_DENO_BUILD:-0}" != "1" ] && command -v deno &> /dev/null && [ -e ./scripts/build-deno ]
53+
if [ "${OPENAI_DISABLE_DENO_BUILD:-0}" != "1" ] && [ -e ./scripts/build-deno ]
5454
then
5555
./scripts/build-deno
5656
fi

src/streaming.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { ReadableStream, type Response } from './_shims/index';
22
import { OpenAIError } from './error';
33
import { LineDecoder } from './internal/decoders/line';
44

5-
import { APIError } from 'openai/error';
5+
import { APIError } from './error';
66

77
type Bytes = string | ArrayBuffer | Uint8Array | Buffer | null | undefined;
88

0 commit comments

Comments
 (0)