UNPKG

@llumiverse/drivers

Version:

LLM driver implementations. Currently supported are: openai, huggingface, bedrock, replicate.

16 lines 500 B
import { sleep, throwError } from "./utils.js"; export class TestErrorCompletionStream { segments; options; completion; constructor(segments, options) { this.segments = segments; this.options = options; } async *[Symbol.asyncIterator]() { yield "Started TestError. Next we will thrown an error.\n"; sleep(1000); throwError("Testing stream completion error.", this.segments); } } //# sourceMappingURL=TestErrorCompletionStream.js.map