Skip to content

Commit 2f90abc

Browse files
committed
chore: new error code
1 parent 4bd5222 commit 2f90abc

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

libs/client-api/src/http_chat.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ use shared_entity::response::{AppResponse, AppResponseError};
1919
use std::pin::Pin;
2020
use std::task::{Context, Poll};
2121
use std::time::Duration;
22-
use tracing::error;
22+
use tracing::{error, info};
2323

2424
impl Client {
2525
/// Create a new chat
@@ -450,7 +450,10 @@ impl Stream for QuestionStream {
450450
error!("Error while streaming answer: {:?}", err);
451451
Poll::Pending
452452
},
453-
None => Poll::Ready(None),
453+
None => {
454+
info!("Stream ended");
455+
Poll::Ready(None)
456+
},
454457
}
455458
}
456459
}

0 commit comments

Comments
 (0)