mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-11 20:34:54 +00:00
Revert "fix: improve streamin error to include error_type"
This reverts commit 2b1a360b1511d94ea9a24e5432e498e67939506a.
This commit is contained in:
parent
a9c8c6a0d7
commit
22d205aa47
@ -2541,7 +2541,6 @@ pub struct APIError {
|
|||||||
#[derive(serde::Serialize)]
|
#[derive(serde::Serialize)]
|
||||||
pub struct ErrorEvent {
|
pub struct ErrorEvent {
|
||||||
error: APIError,
|
error: APIError,
|
||||||
error_type: String,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl ErrorEvent {
|
impl ErrorEvent {
|
||||||
@ -2551,7 +2550,6 @@ impl ErrorEvent {
|
|||||||
message: err.to_string(),
|
message: err.to_string(),
|
||||||
http_status_code,
|
http_status_code,
|
||||||
},
|
},
|
||||||
error_type: err.error_type().to_string(),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user