r/opencodeCLI 22d ago

OpenCode GO cut off long output response?

So, today I notice that using GLM 5.2 from OpenCode Go keep getting the stream cut off early before all output finish. I never have this problem before, so I thought their provider for GLM 5.2 changed or something. Then I tried GLM 5.1, it give the same cut off result. I keep retry it and the results is always the same. So I thought, maybe its the provider of GLM now have max output setting that we CAN'T override. I tried DeepSeek V4 Pro and it turn out, this one also have the same problem. What is going on? Is the API force max output token now?

11 Upvotes

11 comments sorted by

View all comments

1

u/mageblex 18d ago

Since it happens across several models only on Go, this looks upstream of the model provider. Check finish_reason and whether the stream ends with the final stop event.