docs(github-copilot): adds GITHUB_COPILOT_ENABLE_AUTH_RECOVERY#45
Open
iandvt wants to merge 1 commit intoBerriAI:mainfrom
Open
docs(github-copilot): adds GITHUB_COPILOT_ENABLE_AUTH_RECOVERY#45iandvt wants to merge 1 commit intoBerriAI:mainfrom
iandvt wants to merge 1 commit intoBerriAI:mainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Closed
1 task
1 task
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.
Summary
This PR documents the new
GITHUB_COPILOT_ENABLE_AUTH_RECOVERYenvironment variable introduced in BerriAI/litellm#26706.That PR makes the GitHub Copilot authenticator delete its cached OAuth access token and re-run the device flow when GitHub returns a 401, so users no longer have to manually clear
~/.config/litellm/github_copilot/after a stale-token event such as machine sleep/wake or server-side revocation. The behavior is gated on the new environment variable and defaults tofalse.Changes
docs/providers/github_copilot.md: AddsGITHUB_COPILOT_ENABLE_AUTH_RECOVERYto the Environment Variables example block, with a comment describing the recovery action and warning that device flow needs an interactive terminal, so the flag should not be enabled on headless proxy or CI deployments.docs/proxy/config_settings.md: Adds the environment variable to the proxy environment-variable reference table, covering both the enabled path (delete cached OAuth token, re-run device flow, headless caveat) and the disabled-default path (401 propagates to caller, cached token must be cleared manually).Test Plan
GITHUB_COPILOT_ENABLE_AUTH_RECOVERYrow appears in the correct alphabetical position betweenGITHUB_COPILOT_CLIENT_IDandGREENSCALE_API_KEYin the proxy environment-variable table.