handleDeepSeekError static method
Handle DeepSeek-specific errors from API responses
Implementation
static LLMError handleDeepSeekError(
int statusCode,
String message,
Map<String, dynamic>? responseData,
) {
// Check for DeepSeek-specific error patterns first
final deepSeekError = _mapDeepSeekSpecificError(
statusCode,
message,
responseData,
);
if (deepSeekError != null) return deepSeekError;
// Fall back to standard HTTP error mapping
return HttpErrorMapper.mapStatusCode(statusCode, message, responseData);
}