mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-04-22 23:42:06 +00:00
(server) expose new SchedulingError
This commit is contained in:
parent
0cd7538a48
commit
169e1f452f
@ -357,6 +357,8 @@ pub enum InferError {
|
|||||||
ToolError(String),
|
ToolError(String),
|
||||||
#[error("Stream event serialization error")]
|
#[error("Stream event serialization error")]
|
||||||
StreamSerializationError(String),
|
StreamSerializationError(String),
|
||||||
|
#[error("Scheduling error: {0}")]
|
||||||
|
SchedulingError(String),
|
||||||
}
|
}
|
||||||
|
|
||||||
impl InferError {
|
impl InferError {
|
||||||
@ -371,6 +373,7 @@ impl InferError {
|
|||||||
InferError::MissingTemplateVariable(_) => "missing_template_variable",
|
InferError::MissingTemplateVariable(_) => "missing_template_variable",
|
||||||
InferError::ToolError(_) => "tool_error",
|
InferError::ToolError(_) => "tool_error",
|
||||||
InferError::StreamSerializationError(_) => "stream_serialization_error",
|
InferError::StreamSerializationError(_) => "stream_serialization_error",
|
||||||
|
InferError::SchedulingError(_) => "schedling"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user