mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-09 22:31:41 +00:00
Fixing issue to output github copilot verification uri immediately when running in docker. (#12558)
This commit is contained in:
parent
d8ae044ec5
commit
23b04c350e
1 changed files with 5 additions and 1 deletions
|
|
@ -339,7 +339,11 @@ class Authenticator:
|
|||
verification_uri = device_code_info["verification_uri"]
|
||||
|
||||
print( # noqa: T201
|
||||
f"Please visit {verification_uri} and enter code {user_code} to authenticate."
|
||||
f"Please visit {verification_uri} and enter code {user_code} to authenticate.",
|
||||
|
||||
# When this is running in docker, it may not be flushed immediately
|
||||
# so we force flush to ensure the user sees the message
|
||||
flush=True,
|
||||
)
|
||||
|
||||
return self._poll_for_access_token(device_code)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue