{"record":{"id":"10abcfeb17cfa141","repo":"deepseek-ai/deepseek-harness","slug":"unsupported-reasoning-effort","errorCode":"UNSUPPORTED_REASONING_EFFORT","errorMessage":"DeepSeek does not support reasoning effort \"${effort}\"","messagePattern":"DeepSeek does not support reasoning effort \"(.+?)\"","errorType":"exception","errorClass":"LlmError","httpStatus":null,"severity":"error","filePath":"packages/llm/llm-deepseek/src/serialize.ts","lineNumber":74,"sourceCode":"  byteQuantum?: number\n  /** Image-count removal step applied after the request exceeds its count bound. */\n  countQuantum?: number\n}\n\n/** Durable message and image ordinal used in provider diagnostics. */\nexport interface ImageWireLocation {\n  message: number\n  image: number\n}\n\nconst TOOL_RESULT_IMAGE_TEXT = 'Attached image(s) from tool result:'\n\n/** Validate the adapter-owned effort before resolving its DeepSeek wire fields. */\nfunction reasoningEffort(effort: NonNullable<GenerateOptions['reasoningEffort']>): 'off' | 'low' | 'high' | 'max' {\n  if (effort === 'off' || effort === 'low' || effort === 'high' || effort === 'max') {\n    return effort as 'off' | 'low' | 'high' | 'max'\n  }\n  throw new LlmError(\n    `DeepSeek does not support reasoning effort \"${effort}\"`,\n    'UNSUPPORTED_REASONING_EFFORT',\n  )\n}\n\n/** Resolve one legal thinking/effort pair without exposing `off` as a wire effort. */\nfunction resolveThinking(options: GenerateOptions, defaults: RequestDefaults): ResolvedThinking {\n  if (options.purpose === 'session-title') return { thinking: 'disabled' }\n  const effort = options.reasoningEffort === undefined\n    ? defaults.reasoningEffort\n    : reasoningEffort(options.reasoningEffort)\n  if (defaults.thinking === 'disabled' && effort !== undefined && effort !== 'off') {\n    throw new LlmError(\n      `DeepSeek deployment does not support reasoning effort \"${effort}\"`,\n      'UNSUPPORTED_REASONING_EFFORT',\n    )\n  }\n  if (effort === 'off') return { thinking: 'disabled' }","sourceCodeStart":56,"sourceCodeEnd":92,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/llm/llm-deepseek/src/serialize.ts#L56-L92","documentation":"Error \"DeepSeek does not support reasoning effort \"${effort}\"\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/llm/llm-deepseek/src/serialize.ts:74 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a reasoning effort the DeepSeek model supports, or omit the effort."],"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"}