OpenCode silently sends wrong top-p for Qwen models, hurting output quality
JadedSession · reddit · 2026-08-18
A Reddit user found that coding agent OpenCode always sends top-p=1.0, while Qwen models expect 0.95 (thinking) or 0.80 (no-thinking). The bug is invisible in llama.cpp and derivatives, but ninfer logs sampler settings per request and auto-configures correct ones.
The commit that introduced the change was nominally for another fix with no explanation. There's no per-model/provider override; the workaround is setting "build": {"topp": 0.95} in the agent config, which affects all models.
More from coding & agent
- Agentic coding accessibility will reshape understanding of software complexity — pixlpa · 2026-08-24
- Devin Agent bypasses Slack block by finding emails in git logs — sandylikesfrogs · 2026-08-24
- Developer habits shift: Agents become collaborators from simple tools — latticecut · 2026-08-24
- Dev bottleneck shifts from writing to reading code: exe.dev co-founder — thursdai_pod · 2026-08-24
- The biggest AI mistake: trying to reinvent the wheel instead of using tools — Tired40s · 2026-08-24
- DeepPaperNote turns research papers into Obsidian notes — tom_doerr · 2026-08-24