This commit is contained in:
hermes committed 2026-10-16 20:37:11 +00:00
1 parent 15b037ceca
commit acdb4fcf0d
1 file changed
+3 -4
+3 -4
View File
@@ -190,8 +190,8 @@ impl Provider for ClaudeCli {
match v["type"].as_str() {
Some("stream_event") => {
let e = &v["event"];
match e["type"].as_str() {
Some("content_block_delta") => match e["delta"]["type"].as_str() {
if e["type"] == "content_block_delta" {
match e["delta"]["type"].as_str() {
Some("text_delta") => {
let t = e["delta"]["text"].as_str().unwrap_or_default();
text += t;
@@ -204,8 +204,7 @@ impl Provider for ClaudeCli {
tx.send(Ok(StreamEvent::ThinkingDelta { text: t.into() }));
}
_ => {}
},
_ => {}
}
}
}
// complete tool calls (the stream events only carry partial JSON)