{"record":{"id":"b66eb5d7bc8e82cf","repo":"deepseek-ai/deepseek-harness","slug":"llm-deepseek-imageoffloadbytequantum-must-not-exc","errorCode":null,"errorMessage":"llm-deepseek: imageOffloadByteQuantum must not exceed maxRequestFilesBytes","messagePattern":"llm-deepseek: imageOffloadByteQuantum must not exceed maxRequestFilesBytes","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/llm/llm-deepseek/src/index.ts","lineNumber":314,"sourceCode":"  }\n  const maxRequestFilesBytes = config.maxRequestFilesBytes ?? DEFAULT_MAX_REQUEST_FILES_BYTES\n  if (!Number.isSafeInteger(maxRequestFilesBytes) || maxRequestFilesBytes <= 0) {\n    throw new Error('llm-deepseek: maxRequestFilesBytes must be a positive safe integer')\n  }\n  const maxInlineRequestImageBytes = config.maxInlineRequestImageBytes ?? DEFAULT_MAX_INLINE_REQUEST_IMAGE_BYTES\n  if (!Number.isSafeInteger(maxInlineRequestImageBytes) || maxInlineRequestImageBytes <= 0) {\n    throw new Error('llm-deepseek: maxInlineRequestImageBytes must be a positive safe integer')\n  }\n  const maxImagesPerRequest = config.maxImagesPerRequest ?? DEFAULT_MAX_IMAGES_PER_REQUEST\n  if (!Number.isSafeInteger(maxImagesPerRequest) || maxImagesPerRequest <= 0) {\n    throw new Error('llm-deepseek: maxImagesPerRequest must be a positive safe integer')\n  }\n  const imageOffloadByteQuantum = config.imageOffloadByteQuantum ?? DEFAULT_IMAGE_OFFLOAD_BYTE_QUANTUM\n  if (!Number.isSafeInteger(imageOffloadByteQuantum) || imageOffloadByteQuantum <= 0) {\n    throw new Error('llm-deepseek: imageOffloadByteQuantum must be a positive safe integer')\n  }\n  if (imageOffloadByteQuantum > maxRequestFilesBytes) {\n    throw new Error('llm-deepseek: imageOffloadByteQuantum must not exceed maxRequestFilesBytes')\n  }\n  const inlineImageOffloadByteQuantum = config.inlineImageOffloadByteQuantum\n    ?? DEFAULT_INLINE_IMAGE_OFFLOAD_BYTE_QUANTUM\n  if (!Number.isSafeInteger(inlineImageOffloadByteQuantum) || inlineImageOffloadByteQuantum <= 0) {\n    throw new Error('llm-deepseek: inlineImageOffloadByteQuantum must be a positive safe integer')\n  }\n  if (inlineImageOffloadByteQuantum > maxInlineRequestImageBytes) {\n    throw new Error('llm-deepseek: inlineImageOffloadByteQuantum must not exceed maxInlineRequestImageBytes')\n  }\n  const imageOffloadCountQuantum = config.imageOffloadCountQuantum ?? DEFAULT_IMAGE_OFFLOAD_COUNT_QUANTUM\n  if (!Number.isSafeInteger(imageOffloadCountQuantum) || imageOffloadCountQuantum <= 0) {\n    throw new Error('llm-deepseek: imageOffloadCountQuantum must be a positive safe integer')\n  }\n  if (imageOffloadCountQuantum > maxImagesPerRequest) {\n    throw new Error('llm-deepseek: imageOffloadCountQuantum must not exceed maxImagesPerRequest')\n  }\n  const filesApiTimeoutMs = config.filesApiTimeoutMs ?? DEFAULT_FILES_API_TIMEOUT_MS\n  if (!Number.isFinite(filesApiTimeoutMs)","sourceCodeStart":296,"sourceCodeEnd":332,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/llm/llm-deepseek/src/index.ts#L296-L332","documentation":"Error \"llm-deepseek: imageOffloadByteQuantum must not exceed maxRequestFilesBytes\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/llm/llm-deepseek/src/index.ts:314 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Lower imageOffloadByteQuantum or raise maxRequestFilesBytes."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b150a551b8d465e31e418e1b2eaf5e79bbb7d28e","analyzedAt":"2026-08-24T18:12:29.105Z","schemaVersion":2},"datasetVersion":"2026-08-24T22:17:12.610Z"}