You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue might be a duplicate of existing issues. Please check:
[FEATURE]: Allow 1M context window for GPT 5.6 #43041: Feature request to allow configuring the context window size for models via config (same request — setting the model context window through opencode's config file)
Activity
github-actions commentedon Aug 20, 2026
This issue might be a duplicate of existing issues. Please check:
mawenbo-caser commentedon Aug 20, 2026
如何在opencode的配置文件中配置?能否给个例子
neriousy commentedon Oct 20, 2026
Yes: set
providers.<provider ID>.models.<model ID>.limit.contextinopencode.jsoncto the token limit OpenCode should use for that model; this does not enlarge the model's actual supported window. Examples are available at https://opencode.ai/v2/docs/models#aliases. Closing this as an answered question.