Skip to content

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]

Merge pull request #42071 from BerriAI/litellm_remove_dead_telemetry_flag

Mateo Wang58065d46fdd1
diff --cc litellm/proxy/proxy_server.py
index dae88da5974,72bfb2b53a9..7634237a59f
--- a/litellm/proxy/proxy_server.py
+++ b/litellm/proxy/proxy_server.py
@@@ -1235,24 -1213,8 +1235,24 @@@ async def proxy_startup_event(app: Fast
# if not, assume it's a json string
worker_config = json.loads(worker_config)
if isinstance(worker_config, dict):
- await initialize(**worker_config)
+ await initialize_from_worker_config(worker_config)
+ enforce_master_key_boot_verdict(
+ await with_stored_secrets_counted(
+ master_key_boot_verdict(
+ master_key=master_key,
+ environment_master_key=os.getenv(MASTER_KEY_ENV_VAR),
+ general_settings=general_settings,
+ config_file_path=user_config_file_path,
+ override_env_is_on=get_secret_bool(WEAK_OR_UNSET_MASTER_KEY_OVERRIDE_ENV_VAR) is True,
+ salt_key_is_set=os.getenv(SALT_KEY_ENV_VAR) is not None,
+ database_is_configured=prisma_client is not None or get_secret("DATABASE_URL", None) is not None,
+ ),
+ count_values_encrypted_with=partial(count_values_encrypted_with_or_none, _connect_to_count_stored_values),
+ ),
+ announce=announce_on_stderr_at_exit,
+ )
+
# check if DATABASE_URL in environment - load from there
if prisma_client is None:
_db_url: Final[str | None] = get_secret("DATABASE_URL", None)