{"record":{"id":"d9eec5551066436c","repo":"deepseek-ai/deepseek-harness","slug":"internal","errorCode":"internal","errorMessage":"the current model route could not be verified for image input","messagePattern":"the current model route could not be verified for image input","errorType":"exception","errorClass":"AcpContentError","httpStatus":null,"severity":"error","filePath":"packages/acp/acp/src/content.ts","lineNumber":75,"sourceCode":"    throw new AcpContentError('image data must be canonical base64', 'invalid')\n  }\n  return { data, mediaType }\n}\n\n/** Resolve the exact current route and require explicit image input support. */\nasync function assertImageRoute(ctx: Context, agent: Agent, signal: AbortSignal): Promise<void> {\n  const routed = agent.session.requestHeader()?.config\n  const provider = routed?.provider ?? agent.options.provider\n  const model = routed?.model ?? agent.options.model\n  const llm = ctx.get('llm')\n  if (provider === undefined || model === undefined || llm === undefined) {\n    throw new AcpContentError('the current model route could not be resolved for image input', 'invalid')\n  }\n  let info: Awaited<ReturnType<typeof llm.resolveModelInfo>>\n  try {\n    info = await llm.resolveModelInfo(provider, model, signal)\n  } catch (error: unknown) {\n    throw new AcpContentError('the current model route could not be verified for image input', 'internal', { cause: error })\n  }\n  if (info.inputModalities === undefined || !info.inputModalities.includes('image')) {\n    throw new AcpContentError(`model \"${model}\" does not declare image input`, 'invalid')\n  }\n}\n\n/**\n * Determine whether initialization may truthfully advertise inline image prompts.\n * Unknown service, route, capability, or deployment media support is negative.\n * @param ctx - bridge context carrying optional attachment and model services.\n * @param provider - configured provider route used for newly created sessions.\n * @param model - configured exact model id used for newly created sessions.\n * @returns whether this bridge can admit images at initialization time.\n */\nexport async function supportsAcpImagePrompts(\n  ctx: Context,\n  provider: string | undefined,\n  model: string | undefined,","sourceCodeStart":57,"sourceCodeEnd":93,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/acp/acp/src/content.ts#L57-L93","documentation":"Error \"the current model route could not be verified for image input\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/acp/acp/src/content.ts:75 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Switch to a vision-capable model route that accepts image input, or remove images from the request."],"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"}