Skip to content

Commit 50f5238

Browse files
committed
chore: new error code
1 parent 735978b commit 50f5238

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
@@ -183,7 +183,7 @@ impl Client {
183183
let resp = self
184184
.http_client_with_auth(Method::POST, &url)
185185
.await?
186-
.timeout(Duration::from_secs(30))
186+
.timeout(Duration::from_secs(60))
187187
.json(&query)
188188
.send()
189189
.await?;
@@ -446,7 +446,10 @@ impl Stream for QuestionStream {
446446
Poll::Ready(None)
447447
},
448448
},
449-
Some(Err(err)) => Poll::Ready(Some(Err(err))),
449+
Some(Err(err)) => {
450+
error!("Error while streaming answer: {:?}", err);
451+
Poll::Ready(None)
452+
},
450453
None => Poll::Ready(None),
451454
}
452455
}

0 commit comments

Comments
 (0)