Brunobkr/llama.cpp_AlgMor24_github
ΩFFFΣLLIa • llama.cpp • AlgMor24 ██████╗ ███████╗███████╗███████╗██╗ ██╗ ██╗ █████╗ ██╔═══██╗██╔════╝██╔════╝██╔════╝██║ ██║ ██║██╔══██╗ ██║ ██║█████╗ █████╗ █████╗ ██║ ██║ ██║███████║ ██║ ██║██╔══╝ ██╔══╝ ██╔══╝ ██║ ██║ ██║██╔══██║ ╚██████╔╝██║ ██║ ███████╗███████╗███████╗██║██║ ██║ ╚═════╝ ╚═╝ ╚═╝ ╚══════╝╚══════╝╚══════╝╚═╝╚═╝ ╚═╝ High-Performance LLM / VLM Inference & Autonomous Agentic Ecosystem… See the full description on the dataset page: https://huggingface.co/datasets/Brunobkr/llama.cpp_AlgMor24_github.
03.1k
1import { createParser } from "./index.js";2import { ParseError } from "./index.js";3class EventSourceParserStream extends TransformStream {4 constructor({ onError, onRetry, onComment, maxBufferSize } = {}) {5 let parser;6 super({7 start(controller) {8 parser = createParser({9 onEvent: (event) => {10 controller.enqueue(event);11 },12 onError(error) {13 typeof onError == "function" && onError(error), (onError === "terminate" || error.type === "max-buffer-size-exceeded") && controller.error(error);14 },15 onRetry,16 onComment,17 maxBufferSize18 });19 },20 transform(chunk) {21 parser.feed(chunk);22 }23 });24 }25}26export {27 EventSourceParserStream,28 ParseError29};30//# sourceMappingURL=stream.js.map31 