{"record":{"id":"da4728d375e17ed7","repo":"deepseek-ai/deepseek-harness","slug":"llm-deepseek-maximagesperrequest-must-be-a-positi","errorCode":null,"errorMessage":"llm-deepseek: maxImagesPerRequest must be a positive safe integer","messagePattern":"llm-deepseek: maxImagesPerRequest must be a positive safe integer","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/llm/llm-deepseek/src/index.ts","lineNumber":307,"sourceCode":"  const streamIdleTimeoutMs = config.streamIdleTimeoutMs ?? DEFAULT_STREAM_IDLE_TIMEOUT_MS\n  if (!Number.isFinite(streamIdleTimeoutMs)\n    || streamIdleTimeoutMs <= 0\n    || streamIdleTimeoutMs > MAX_TIMER_DELAY_MS) {\n    throw new Error(\n      `llm-deepseek: streamIdleTimeoutMs must be a positive finite number no greater than ${MAX_TIMER_DELAY_MS}`,\n    )\n  }\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) {","sourceCodeStart":289,"sourceCodeEnd":325,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/llm/llm-deepseek/src/index.ts#L289-L325","documentation":"Error \"llm-deepseek: maxImagesPerRequest must be a positive safe integer\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/llm/llm-deepseek/src/index.ts:307 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set maxImagesPerRequest 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"}