The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
Fixing issue to output github copilot verification uri immediately when running in docker. (#12558)
Eugene Myasyshchev23b04c350e93
diff --git a/litellm/llms/github_copilot/authenticator.py b/litellm/llms/github_copilot/authenticator.pyindex fdf59a9a21c..8ec9cd544f4 100644--- a/litellm/llms/github_copilot/authenticator.py+++ b/litellm/llms/github_copilot/authenticator.py@@ -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)