From 3ed5df78173a15f8c95d975e94d0eeec568a9190 Mon Sep 17 00:00:00 2001 From: "Son H. Nguyen" Date: Wed, 19 Mar 2025 23:29:55 +0700 Subject: [PATCH] fix: use print to make sure the logger message shown --- litellm/llms/github_copilot/authenticator.py | 2 +- tests/llm_translation/test_github_copilot_authenticator.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/litellm/llms/github_copilot/authenticator.py b/litellm/llms/github_copilot/authenticator.py index 105daa568c..7b76d521c1 100644 --- a/litellm/llms/github_copilot/authenticator.py +++ b/litellm/llms/github_copilot/authenticator.py @@ -298,7 +298,7 @@ class Authenticator: user_code = device_code_info["user_code"] verification_uri = device_code_info["verification_uri"] - verbose_logger.info( + print( f"Please visit {verification_uri} and enter code {user_code} to authenticate." ) diff --git a/tests/llm_translation/test_github_copilot_authenticator.py b/tests/llm_translation/test_github_copilot_authenticator.py index 95e3982a2a..247b7bf678 100644 --- a/tests/llm_translation/test_github_copilot_authenticator.py +++ b/tests/llm_translation/test_github_copilot_authenticator.py @@ -176,4 +176,4 @@ class TestGitHubCopilotAuthenticator: assert result == mock_token authenticator._get_device_code.assert_called_once() authenticator._poll_for_access_token.assert_called_once_with("mock-device-code") - mock_print.assert_called_once() \ No newline at end of file + mock_print.assert_called_once()