DeepSeek Model Error: max_tokens Capped at 131k Despite Official 384k Limit

locustbaby · ghdev · 2026-08-21

A user encountered an error when using the opencode-go integration with DeepSeek Flash, stating that a maxtokens setting of 384,000 exceeds the supported limit of 131,072 completion tokens. This discrepancy suggests a constraint within the OpenCode implementation or its upstream connection, despite DeepSeek's official documentation claiming a higher limit.

Original post →

More from Infra

Infra channel →