{"record":{"id":"d3990ebb095bad75","repo":"deepseek-ai/deepseek-harness","slug":"llm-deepseek-inlineimageoffloadbytequantum-must-b","errorCode":null,"errorMessage":"llm-deepseek: inlineImageOffloadByteQuantum must be a positive safe integer","messagePattern":"llm-deepseek: inlineImageOffloadByteQuantum must be a positive safe integer","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/llm/llm-deepseek/src/index.ts","lineNumber":319,"sourceCode":"  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)\n    || filesApiTimeoutMs <= 0\n    || filesApiTimeoutMs > MAX_TIMER_DELAY_MS) {\n    throw new Error(\n      `llm-deepseek: filesApiTimeoutMs must be a positive finite number no greater than ${MAX_TIMER_DELAY_MS}`,\n    )","sourceCodeStart":301,"sourceCodeEnd":337,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/llm/llm-deepseek/src/index.ts#L301-L337","documentation":"Error \"llm-deepseek: inlineImageOffloadByteQuantum must be a positive safe integer\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/llm/llm-deepseek/src/index.ts:319 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set inlineImageOffloadByteQuantum to a positive safe integer."],"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"}