Skip to content

Github Copliot provider allows only 128k token conversations #172

Closed

Description

@rekram1-node

I have noticed that when using github copilot as my provider i get this error for prompt longer that 128k tokens. this seems weird, since i am using gemini 2.5 pro as my model, but conversations cannot be more than a few messages long because token limit is reached. is there a way to fix that?

Copying from: anomalyco/opencode#2317

Activity

  1. rekram1-node commented on Sep 11, 2025

    @rekram1-node
    CollaboratorAuthor

    You can get the model list from https://api.githubcopilot.com/models

    base url may be: https://api.${state.accountType}.githubcopilot.com

    for some accounts

    model list shows all the models and their output limits

  2. rekram1-node commented on Sep 11, 2025

    @rekram1-node
    CollaboratorAuthor

    Example:

    models.json

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

Metadata

Metadata

Assignees

No one assigned

    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