mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-05 20:27:35 +00:00
chore: standardize missing training config error
Signed-off-by: Nathan Weinberg <nweinber@redhat.com>
This commit is contained in:
parent
eed25fc6e4
commit
7b0f19fd25
3 changed files with 26 additions and 16 deletions
|
@ -79,3 +79,11 @@ class ConflictError(ValueError):
|
|||
|
||||
def __init__(self, message: str) -> None:
|
||||
super().__init__(message)
|
||||
|
||||
|
||||
class MissingTrainingConfigError(ValueError):
|
||||
"""raise when Llama Stack is missing configuration for training"""
|
||||
|
||||
def __init__(self, config_name: str) -> None:
|
||||
message = f"'{config_name}' is required for training"
|
||||
super().__init__(message)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue