Unit_AI/node_modules/openai/_shims/bun-runtime.js
2024-06-01 16:24:36 -04:00

14 lines
No EOL
486 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getRuntime = void 0;
const web_runtime_1 = require("./web-runtime.js");
const node_fs_1 = require("node:fs");
function getRuntime() {
const runtime = (0, web_runtime_1.getRuntime)();
function isFsReadStream(value) {
return value instanceof node_fs_1.ReadStream;
}
return { ...runtime, isFsReadStream };
}
exports.getRuntime = getRuntime;
//# sourceMappingURL=bun-runtime.js.map