AI_botter/node_modules/openai/_shims/bun-runtime.mjs

10 lines
361 B
JavaScript
Raw Normal View History

2024-05-01 02:46:10 +01:00
import { getRuntime as getWebRuntime } from "./web-runtime.mjs";
import { ReadStream as FsReadStream } from 'node:fs';
export function getRuntime() {
const runtime = getWebRuntime();
function isFsReadStream(value) {
return value instanceof FsReadStream;
}
return { ...runtime, isFsReadStream };
}
//# sourceMappingURL=bun-runtime.mjs.map