您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

12345678910111213141516
  1. class InvokeError(Exception):
  2. """Base class for all LLM exceptions."""
  3. description: str | None = None
  4. def __init__(self, description: str | None = None):
  5. self.description = description
  6. def __str__(self):
  7. return self.description or self.__class__.__name__
  8. class InvokeRateLimitError(InvokeError):
  9. """Raised when the Invoke returns rate limit error."""
  10. description = "Rate Limit Error"