UNPKG

@tsailab/xai

Version:

The loto-xai is an openai nodejs sdk compatible extension library.

19 lines 500 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.asyncStreamIterable = asyncStreamIterable; async function* asyncStreamIterable(stream) { const reader = stream.getReader(); try { while (true) { const { done, value } = await reader.read(); if (done) { return; } yield value; } } finally { reader.releaseLock(); } } //# sourceMappingURL=xnode.sse.util.js.map