Method StreamAsync(LlmRequest, CancellationToken)

Assembly: redb.Route.Llm.dll

Performs a streaming completion. Yields the pieces as they arrive (visible text as
, thinking as ) and ends with a chunk that
carries the stop reason, the usage and : the whole answer,
exactly what returns for it. A stream that ends before the model said
why it stopped is a cut answer and fails. Default implementation buffers
as a single chunk — override for true token-streaming.

IAsyncEnumerable<LlmStreamChunk> StreamAsync(LlmRequest request, CancellationToken ct = default)