litellm/tests/unit/proxy/client
ryan-crabbe-berri e95bf288f3
feat(cli): connect a per-user GitHub Copilot credential from the command line (#50863)
* feat(cli): connect a per-user GitHub Copilot credential from the command line

lite credentials connect runs the GitHub device login with the caller's own key,
so users can connect Copilot without opening the LiteLLM UI.

* fix(cli): stop connect before the GitHub code expires and explain lost connections

The connect command kept polling until the proxy rejected the expired code with a raw HTTP 400, so it now stops one interval before expiry and prints its own expired message. A dropped connection or timeout while waiting now prints a short rerun message instead of a traceback.

* fix(cli): keep checking for approval until the GitHub code actually expires

Connect stopped one interval early, so an approval in the last seconds was missed. The countdown now starts when the code is requested, which is never later than the proxy's own cutoff, and polling continues while another poll fits.
2026-11-10 22:10:24 +00:00
..
cli feat(cli): connect a per-user GitHub Copilot credential from the command line (#50863) 2026-11-10 22:10:24 +00:00
__init__.py
conftest.py
test_chat.py
test_client.py
test_credentials.py refactor(typing): clear about 1,100 basedpyright Any errors across 303 files (#49986) 2026-11-06 13:31:15 -08:00
test_http_client.py
test_http_commands.py
test_keys.py refactor(typing): clear about 1,100 basedpyright Any errors across 303 files (#49986) 2026-11-06 13:31:15 -08:00
test_model_groups.py
test_models.py
test_teams.py refactor(typing): clear about 1,100 basedpyright Any errors across 303 files (#49986) 2026-11-06 13:31:15 -08:00
test_users.py refactor(types): replace Any with proven types in 21 files (#48921) 2026-10-29 18:43:24 -07:00