Issue draft for https://github.com/openai/openai-deno-build or deno itself
- openai-deno-build does not work with deno 1.40.*
This is bug for https://github.com/openai/openai-deno-build
- deno: v1.40.3
- openai-deno-build: v4.20.1
Put run.ts
import { OpenAI } from "https://deno.land/x/openai@v4.20.1/mod.ts";
const _client = new OpenAI({
apiKey: Deno.env.get("OPENAI_API_KEY")!,
});
$ deno run -A run.ts
error: Uncaught (in promise) ReferenceError: _computedKey is not defined
Warning Couldn't format source line: Column 42 is out of bounds (source may have changed at runtime)
at https://deno.land/x/openai@v4.20.1/lib/ChatCompletionStream.ts:15:42
But it works with deno@1.39.4.
Variable _computedKey
is not used in https://deno.land/x/openai@v4.20.1/lib/ChatCompletionStream.ts
So I doubt there is bug from transpiling of for await
in deno@1.40.*
It works with deno@1.39.3