{"record":{"id":"5218b071f98abefb","repo":"deepseek-ai/deepseek-harness","slug":"llm-deepseek-text-only-catalog-model-model-id","errorCode":null,"errorMessage":"llm-deepseek: text-only catalog model \"${model.id}\" cannot declare image request limits","messagePattern":"llm-deepseek: text-only catalog model \"(.+?)\" cannot declare image request limits","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/llm/llm-deepseek/src/index.ts","lineNumber":230,"sourceCode":"        `llm-deepseek: catalog model \"${model.id}\" maxTokens must be a positive integer`,\n      )\n    }\n    const inputModalities = model.inputModalities ?? ['text']\n    if (inputModalities.length === 0) {\n      throw new Error(`llm-deepseek: catalog model \"${model.id}\" inputModalities must not be empty`)\n    }\n    if (inputModalities.some(modality => !MODEL_MODALITIES.includes(modality))) {\n      throw new Error(\n        `llm-deepseek: catalog model \"${model.id}\" inputModalities must contain only \"text\" and \"image\"`,\n      )\n    }\n    if (new Set(inputModalities).size !== inputModalities.length) {\n      throw new Error(`llm-deepseek: catalog model \"${model.id}\" inputModalities must not contain duplicates`)\n    }\n    const hasImage = inputModalities.includes('image')\n    if (!hasImage && (model.imagePixelBudget !== undefined\n      || model.imageMaxBytes !== undefined || model.imageDetail !== undefined)) {\n      throw new Error(`llm-deepseek: text-only catalog model \"${model.id}\" cannot declare image request limits`)\n    }\n    if (model.imagePixelBudget !== undefined\n      && (!Number.isSafeInteger(model.imagePixelBudget) || model.imagePixelBudget <= 0)) {\n      throw new Error(`llm-deepseek: catalog model \"${model.id}\" imagePixelBudget must be a positive safe integer`)\n    }\n    if (model.imageMaxBytes !== undefined\n      && (!Number.isSafeInteger(model.imageMaxBytes) || model.imageMaxBytes <= 0)) {\n      throw new Error(`llm-deepseek: catalog model \"${model.id}\" imageMaxBytes must be a positive safe integer`)\n    }\n    if (seen.has(model.id)) throw new Error(`llm-deepseek: duplicate catalog model \"${model.id}\"`)\n    seen.add(model.id)\n    return {\n      id: model.id,\n      ...model.name === undefined ? {} : { name: model.name },\n      ...model.description === undefined ? {} : { description: model.description },\n      ...model.contextWindow === undefined ? {} : { contextWindow: model.contextWindow },\n      ...model.maxTokens === undefined ? {} : { maxTokens: model.maxTokens },\n      inputModalities: [...inputModalities],","sourceCodeStart":212,"sourceCodeEnd":248,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/llm/llm-deepseek/src/index.ts#L212-L248","documentation":"Error \"llm-deepseek: text-only catalog model \"${model.id}\" cannot declare image request limits\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/llm/llm-deepseek/src/index.ts:230 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Remove the image request limits, or add \"image\" to the model's inputModalities."],"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"}