This commit is contained in:
jif-oai
2025-10-14 11:46:27 +01:00
parent f72e9da7c5
commit cb99d71f57
7 changed files with 237 additions and 80 deletions

View File

@@ -987,11 +987,16 @@ impl Session {
}
async fn notify_stream_error(&self, sub_id: &str, message: impl Into<String>) {
let message = message.into();
warn!(
conversation_id = %self.conversation_id,
sub_id = %sub_id,
%message,
"stream error while streaming model response",
);
let event = Event {
id: sub_id.to_string(),
msg: EventMsg::StreamError(StreamErrorEvent {
message: message.into(),
}),
msg: EventMsg::StreamError(StreamErrorEvent { message }),
};
self.send_event(event).await;
}