@@ -403,6 +403,8 @@ async fn process_sse<S>(
|
||||
}
|
||||
};
|
||||
|
||||
trace!("SSE event: {}", sse.data);
|
||||
|
||||
let event: SseEvent = match serde_json::from_str(&sse.data) {
|
||||
Ok(event) => event,
|
||||
Err(e) => {
|
||||
@@ -411,7 +413,6 @@ async fn process_sse<S>(
|
||||
}
|
||||
};
|
||||
|
||||
trace!(?event, "SSE event");
|
||||
match event.kind.as_str() {
|
||||
// Individual output item finalised. Forward immediately so the
|
||||
// rest of the agent can stream assistant text/functions *live*
|
||||
|
||||
Reference in New Issue
Block a user