mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-23 06:29:40 +00:00
chore: standardize vector store not found error
Signed-off-by: Nathan Weinberg <nweinber@redhat.com>
This commit is contained in:
parent
25d3dfa30f
commit
2cb3401733
9 changed files with 46 additions and 31 deletions
|
|
@ -19,3 +19,11 @@ class ModelNotFoundError(ValueError):
|
|||
def __init__(self, model_name: str) -> None:
|
||||
message = f"Model '{model_name}' not found. Use client.models.list() to list available models."
|
||||
super().__init__(message)
|
||||
|
||||
|
||||
class VectorStoreNotFoundError(ValueError):
|
||||
"""raised when Llama Stack cannot find a referenced vector store"""
|
||||
|
||||
def __init__(self, vector_store_name: str) -> None:
|
||||
message = f"Vector store '{vector_store_name}' not found. Use client.vector_dbs.list() to list available vector stores."
|
||||
super().__init__(message)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue