Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

456 B
Raw Blame
from typing import override


class InvokeError(Exception):
    """Base class for all LLM exceptions."""

    description: str = ""

    def __init__(self, description: str = ""):
        self.description = description

    @override
    def __str__(self):
        return self.description or self.__class__.__name__


class InvokeRateLimitError(InvokeError):
    """Raised when the Invoke returns rate limit error."""

    description = "Rate Limit Error"