We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79e1d14 commit 9a60489Copy full SHA for 9a60489
crates/chat-cli/src/cli/chat/parser.rs
@@ -40,7 +40,12 @@ impl RecvError {
40
41
impl ReasonCode for RecvError {
42
fn reason_code(&self) -> String {
43
- "RecvError".to_string()
+ match &self.source {
44
+ RecvErrorKind::Client(_) => "RecvErrorApiClient".to_string(),
45
+ RecvErrorKind::Json(_) => "RecvErrorJson".to_string(),
46
+ RecvErrorKind::StreamTimeout { .. } => "RecvErrorStreamTimeout".to_string(),
47
+ RecvErrorKind::UnexpectedToolUseEos { .. } => "RecvErrorUnexpectedToolUseEos".to_string(),
48
+ }
49
}
50
51
0 commit comments