Skip to content

[FEATURE]:请问:可以通过配置opencode的配置文件,来设置大模型的上下文窗口大小么? #43601

Closed as not planned

Description

@mawenbo-caser

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

可以通过配置opencode的配置文件,来设置大模型的上下文窗口大小么?

Activity

  1. github-actions commented on Aug 20, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

  2. mawenbo-caser commented on Aug 20, 2026

    @mawenbo-caser
    Author

    如何在opencode的配置文件中配置?能否给个例子

  3. neriousy commented on Oct 20, 2026

    @neriousy
    Member

    Yes: set providers.<provider ID>.models.<model ID>.limit.context in opencode.jsonc to 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions