mirror of
https://github.com/langgenius/dify.git
synced 2026-03-04 15:26:21 +08:00
23 lines
675 B
Python
23 lines
675 B
Python
class KnowledgeIndexNodeError(ValueError):
|
|
"""Base class for KnowledgeIndexNode errors."""
|
|
|
|
|
|
class ModelNotExistError(KnowledgeIndexNodeError):
|
|
"""Raised when the model does not exist."""
|
|
|
|
|
|
class ModelCredentialsNotInitializedError(KnowledgeIndexNodeError):
|
|
"""Raised when the model credentials are not initialized."""
|
|
|
|
|
|
class ModelNotSupportedError(KnowledgeIndexNodeError):
|
|
"""Raised when the model is not supported."""
|
|
|
|
|
|
class ModelQuotaExceededError(KnowledgeIndexNodeError):
|
|
"""Raised when the model provider quota is exceeded."""
|
|
|
|
|
|
class InvalidModelTypeError(KnowledgeIndexNodeError):
|
|
"""Raised when the model is not a Large Language Model."""
|