plano/crates/brightstaff
Adil Hafeez 42d3de8906 bidirectional streaming for output filter chains
Replace per-chunk HTTP requests to output filters with a single
bidirectional streaming connection per filter. This eliminates
the 50-200+ round-trips per streaming LLM response.

Filters opt in via streaming: true in config. When all output filters
support streaming, brightstaff opens one POST per filter with a streaming
request body (Body::wrap_stream) and reads the streaming response. Filters
that don't opt in fall back to the existing per-chunk behavior.

Updates the PII deanonymizer demo as the reference implementation with
request.stream() + StreamingResponse support.

Made-with: Cursor
2026-03-19 02:27:26 -07:00
..
src bidirectional streaming for output filter chains 2026-03-19 02:27:26 -07:00
Cargo.toml bidirectional streaming for output filter chains 2026-03-19 02:27:26 -07:00