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
{{ message }}
Repository navigation
Github Copliot provider allows only 128k token conversations. #2317
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?
This issue might be a duplicate of existing issues. Please check:
応答なし microsoft/vscode-copilot-release#1551: Similar token limit error with different models - shows how OpenCode handles token limit errors when context exceeds provider limits
microsoft/vscode-copilot#6117: Copilot models respond with Bad Request errors after chat - similar pattern of GitHub Copilot provider issues after conversation continues
We will need to fix models.dev to accurately portray the limits but you can do this^ as a workaround, annoyingly github copilot doesn't exactly outline the limits for each model
Reacted by Art Shendrik, Brian Wojtczak, Youssef Idmoussi, Emiliano Steinvorth, max and piv0199-png
@amal I made an issue on models.dev to update the models. if it doesn't have any open prs I will try to jump on that next sorry about delay on this I mentioned to team a few weeks ago
Activity
github-actions commentedon Aug 29, 2025
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
rekram1-node commentedon Aug 29, 2025
I think we need to update models.dev to reflect this
rekram1-node commentedon Aug 29, 2025
Made issue on models.dev to track: anomalyco/models.dev#172
astrolox commentedon Aug 30, 2025
I have encountered the same problem.
I don't see any options for configuring manually context limits, which surprised me. Does this exist?
rekram1-node commentedon Aug 30, 2025
@astrolox there are options for this actually:
We will need to fix models.dev to accurately portray the limits but you can do this^ as a workaround, annoyingly github copilot doesn't exactly outline the limits for each model
Steinvorth commentedon Sep 1, 2025
Thanks for the help, and for the fast response I will implement this immediately! 💪
art-shen commentedon Sep 10, 2025
Makes GitHub Copilot models effectively unusable 😿
rekram1-node commentedon Sep 10, 2025
@amal I made an issue on models.dev to update the models. if it doesn't have any open prs I will try to jump on that next sorry about delay on this I mentioned to team a few weeks ago
rekram1-node commentedon Sep 11, 2025
I made a PR to models.dev and pinged team to review hopefully it gets shipped soon
rekram1-node commentedon Sep 11, 2025
Try restarting opencode or running:
and it should be fixed