mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-10-05 16:26:57 +08:00

Improve error handling in DDG use OpenaiAPI provider in DeepInfraChat Support api_base and response_type parameters in API
56 lines
1.0 KiB
Python
56 lines
1.0 KiB
Python
class ProviderNotFoundError(Exception):
|
|
...
|
|
|
|
class ProviderNotWorkingError(Exception):
|
|
...
|
|
|
|
class StreamNotSupportedError(Exception):
|
|
...
|
|
|
|
class ModelNotFoundError(Exception):
|
|
...
|
|
|
|
class ModelNotAllowedError(Exception):
|
|
...
|
|
|
|
class RetryProviderError(Exception):
|
|
...
|
|
|
|
class RetryNoProviderError(Exception):
|
|
...
|
|
|
|
class VersionNotFoundError(Exception):
|
|
...
|
|
|
|
class ModelNotSupportedError(Exception):
|
|
...
|
|
|
|
class MissingRequirementsError(Exception):
|
|
...
|
|
|
|
class NestAsyncioError(MissingRequirementsError):
|
|
...
|
|
|
|
class MissingAuthError(Exception):
|
|
...
|
|
|
|
class NoImageResponseError(Exception):
|
|
...
|
|
|
|
class ResponseError(Exception):
|
|
...
|
|
|
|
class ResponseStatusError(Exception):
|
|
...
|
|
|
|
class RateLimitError(ResponseStatusError):
|
|
...
|
|
|
|
class NoValidHarFileError(Exception):
|
|
...
|
|
|
|
class TimeoutError(Exception):
|
|
"""Raised for timeout errors during API requests."""
|
|
|
|
class ConversationLimitError(Exception):
|
|
"""Raised for conversation limit during API requests to AI endpoint.""" |