feat: add --auto flag to use the available model of "Auto"#4
Open
lanternian wants to merge 1 commit into
Open
Conversation
…ide an auto-available model when the planned models' quota is exhausted.
--auto flag to use the available of "auto mode"--auto flag to use the available model of "Auto"
Owner
|
Thanks @lanternian for the PR, this looks promising. Could you help add some tests before we merge? I’d like to cover the auto headers, and also the model-selection behavior when the existing Codex model is not in We should make sure |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GitHub introduced a weekly quota. When a model’s quota is exhausted you can’t select models manually — selection must be done via Auto (automatic routing). By providing a special auto credential (the Copilot-Session-Token), we can freely request models that are available to Auto.
add
--autoflag tobypass the auto-selection routing and provide an auto-available model when the planned models' quota is exhausted.available models includes: gpt-5-mini, claude-haiku-4.5, gpt-5.4-mini, gpt-5.3-codex, gpt-4.1, gpt-4o