Skip to main content
Creates a streaming LLM pipeline and uses pipeline.stream() which returns typed StreamChunk objects instead of raw SSE lines.
Source: examples/pipelines/streaming_with_chunks.py in the SDK repo.