joychou (@joychou996)这个claude code 的max_tokens应该怎么配置? 中发帖

我用的是本地部署的qwen3-32b模型。然后用new-api中转。现在动不动报token超 

API Error: 400 {“error”:{“type”:“400”,“message”:“‘max_tokens’ or ‘max_completion_tokens’ is too large: 1100. This
model’s maximum context length is 32768 tokens and your request has 32507 input tokens (1100 > 32768 - 32507). None (request id: 20260127111937825808139u1m5pMws)”},“type”:“error”}

这里的1100是我newapi里限制了,不限制也会报错,只不过数据量不一样。应该在哪里配置?
而且...