diff --git a/src/deps.ts b/src/deps.ts new file mode 100644 index 0000000..61a5668 --- /dev/null +++ b/src/deps.ts @@ -0,0 +1,2 @@ +export { TextDelimiterStream } from "https://deno.land/std@0.204.0/streams/mod.ts"; +export { basename } from "https://deno.land/std@0.204.0/path/mod.ts"; \ No newline at end of file diff --git a/src/openai.ts b/src/openai.ts index fc08785..82ef87a 100644 --- a/src/openai.ts +++ b/src/openai.ts @@ -1,4 +1,4 @@ -import { basename } from "https://deno.land/std@0.189.0/path/mod.ts"; +import { basename } from "./deps.ts"; import { decodeStream, throwError } from "./util.ts"; import type { ChatCompletion, diff --git a/src/util.ts b/src/util.ts index 77383c3..aa35bf0 100644 --- a/src/util.ts +++ b/src/util.ts @@ -1,4 +1,4 @@ -import { TextDelimiterStream } from "https://deno.land/std@0.189.0/streams/mod.ts"; +import { TextDelimiterStream } from "./deps.ts"; export function throwError( data: { error?: { type: string; message: string; code: string } },