From a7da4833dae4cd33bb6acb55b6ca118567bf3e3e Mon Sep 17 00:00:00 2001 From: Alexsander Hamir Date: Thu, 1 Jan 2026 11:18:59 -0800 Subject: [PATCH] [Fix] CI/CD - check_code_and_doc_quality (#18560) --- docs/my-website/docs/proxy/config_settings.md | 4 ++++ litellm/integrations/opentelemetry.py | 1 - litellm/proxy/auth/login_utils.py | 2 +- tests/code_coverage_tests/recursive_detector.py | 1 + 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/my-website/docs/proxy/config_settings.md b/docs/my-website/docs/proxy/config_settings.md index 343cbd0e53..87064d442a 100644 --- a/docs/my-website/docs/proxy/config_settings.md +++ b/docs/my-website/docs/proxy/config_settings.md @@ -464,6 +464,9 @@ router_settings: | DATABASE_USER | Username for database connection | DATABASE_USERNAME | Alias for database user | DATABRICKS_API_BASE | Base URL for Databricks API +| DATABRICKS_CLIENT_ID | Client ID for Databricks OAuth M2M authentication (Service Principal application ID) +| DATABRICKS_CLIENT_SECRET | Client secret for Databricks OAuth M2M authentication +| DATABRICKS_USER_AGENT | Custom user agent string for Databricks API requests. Used for partner telemetry attribution | DAYS_IN_A_MONTH | Days in a month for calculation purposes. Default is 28 | DAYS_IN_A_WEEK | Days in a week for calculation purposes. Default is 7 | DAYS_IN_A_YEAR | Days in a year for calculation purposes. Default is 365 @@ -708,6 +711,7 @@ router_settings: | LITELLM_SSL_CIPHERS | SSL/TLS cipher configuration for faster handshakes. Controls cipher suite preferences for OpenSSL connections. | LITELLM_SECRET_AWS_KMS_LITELLM_LICENSE | AWS KMS encrypted license for LiteLLM | LITELLM_TOKEN | Access token for LiteLLM integration +| LITELLM_USER_AGENT | Custom user agent string for LiteLLM API requests. Used for partner telemetry attribution | LITELLM_PRINT_STANDARD_LOGGING_PAYLOAD | If true, prints the standard logging payload to the console - useful for debugging | LITELM_ENVIRONMENT | Environment for LiteLLM Instance. This is currently only logged to DeepEval to determine the environment for DeepEval integration. | LOGFIRE_TOKEN | Token for Logfire logging service diff --git a/litellm/integrations/opentelemetry.py b/litellm/integrations/opentelemetry.py index dd34c7be70..12e60bc25b 100644 --- a/litellm/integrations/opentelemetry.py +++ b/litellm/integrations/opentelemetry.py @@ -517,7 +517,6 @@ class OpenTelemetry(CustomLogger): response: LLMResponseTypes, ): from litellm.litellm_core_utils.litellm_logging import Logging as LiteLLMLogging - from opentelemetry.trace import Status, StatusCode litellm_logging_obj = data.get("litellm_logging_obj") diff --git a/litellm/proxy/auth/login_utils.py b/litellm/proxy/auth/login_utils.py index 96a4f206e9..8cc33ce6cd 100644 --- a/litellm/proxy/auth/login_utils.py +++ b/litellm/proxy/auth/login_utils.py @@ -138,7 +138,7 @@ class LoginResult: self.login_method = login_method -async def authenticate_user( +async def authenticate_user( # noqa: PLR0915 username: str, password: str, master_key: Optional[str], diff --git a/tests/code_coverage_tests/recursive_detector.py b/tests/code_coverage_tests/recursive_detector.py index 8331738bab..20e6a381e5 100644 --- a/tests/code_coverage_tests/recursive_detector.py +++ b/tests/code_coverage_tests/recursive_detector.py @@ -37,6 +37,7 @@ IGNORE_FUNCTIONS = [ "_split_text", # max depth set. "_delete_nested_value_custom", # max depth set (bounded by number of path segments). "filter_exceptions_from_params", # max depth set (default 20) to prevent infinite recursion. + "__getattr__", # lazy loading pattern in litellm/__init__.py with proper caching to prevent infinite recursion. ]