Pass the schema text to the stream reader

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-29 20:06:23 +01:00
commit 3d8addfec4

View file

@ -277,10 +277,10 @@ fn read_stream(
child: &mut dyn RunningChild,
deadline: Instant,
model: &str,
structured: bool,
schema: Option<&str>,
quota: &QuotaCell,
) -> Result<Finished, Failure> {
let mut state = StreamState::new(model, structured, quota);
let mut state = StreamState::new(model, schema, quota);
let finished = loop {
match child.read_line(deadline) {
StdoutRead::Line(line) => {