DeepSeekErrorHandler class
DeepSeek-specific error handler
This class provides specialized error handling for DeepSeek API responses, mapping DeepSeek error codes and messages to appropriate LLM error types. Reference: https://api-docs.deepseek.com/quick_start/error_codes
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
handleDeepSeekError(
int statusCode, String message, Map< String, dynamic> ? responseData) → LLMError - Handle DeepSeek-specific errors from API responses
-
handleDioError(
DioException e) → LLMError - Handle Dio errors specifically for DeepSeek
-
isModelNotAvailable(
String message) → bool - Check if error indicates model not available
-
isQuotaExceeded(
String message) → bool - Check if error indicates insufficient quota/balance
-
isRateLimited(
String message) → bool - Check if error indicates rate limiting
-
isServerError(
String message) → bool - Check if error indicates server issues