org.llm4s.llmconnect.streaming.StreamingOptions
See theStreamingOptions companion object
case class StreamingOptions(onStart: () => Unit, onChunk: StreamedChunk => Unit, onError: LLMError => Unit, onComplete: Completion => Unit, bufferSize: Int, connectionTimeout: Long, readTimeout: Long)
Options for streaming completions with callbacks for different events. Provides a more flexible alternative to the simple onChunk callback.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article