Skip to content

Interface: UseServingStreamOptions\<K, T\>

K extends ServingAlias = ServingAlias

T = InferServingChunk<K>

optional alias?: K

Endpoint alias for named mode. Omit for default mode.


optional autoStart?: boolean

If true, starts streaming automatically on mount. Default: false


optional onComplete?: (chunks) => void

Called with accumulated chunks when the stream completes successfully.

T[]

void