handleDeepSeekError static method

LLMError handleDeepSeekError(
  1. int statusCode,
  2. String message,
  3. Map<String, dynamic>? responseData
)

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);
}