feat(errors): add new error classes for unsupported prompt types and memory role prefix requirements

This commit is contained in:
-LAN- 2024-11-13 16:22:15 +08:00
parent 09ae7600da
commit 8b1c4a3186

View File

@ -24,3 +24,11 @@ class LLMModeRequiredError(LLMNodeError):
class NoPromptFoundError(LLMNodeError):
"""Raised when no prompt is found in the LLM configuration."""
class NotSupportedPromptTypeError(LLMNodeError):
"""Raised when the prompt type is not supported."""
class MemoryRolePrefixRequiredError(LLMNodeError):
"""Raised when memory role prefix is required for completion model."""