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
style: cleanup prints in enterprise
Krrish Dholakiaed02488daf46
diff --git a/enterprise/enterprise_hooks/managed_files.py b/enterprise/enterprise_hooks/managed_files.pyindex 7410ad793b2..c752395ac61 100644--- a/enterprise/enterprise_hooks/managed_files.py+++ b/enterprise/enterprise_hooks/managed_files.py@@ -5,7 +5,7 @@ import asyncioimport base64import jsonimport uuid-from typing import TYPE_CHECKING, Any, Dict, List, Literal, Optional, Tuple, Union, cast+from typing import TYPE_CHECKING, Any, Dict, List, Literal, Optional, Union, castfrom fastapi import HTTPException@@ -628,7 +628,6 @@ class _PROXY_LiteLLMManagedFiles(CustomLogger, BaseFileEndpoints):async def async_post_call_success_hook(self, data: Dict, user_api_key_dict: UserAPIKeyAuth, response: LLMResponseTypes) -> Any:- print(f"response: {response}, type: {type(response)}")if isinstance(response, LiteLLMBatch):## Check if unified_file_id is in the responseunified_file_id = response._hidden_params.get(@@ -692,7 +691,6 @@ class _PROXY_LiteLLMManagedFiles(CustomLogger, BaseFileEndpoints):"""For listing files, filter for the ones created by the user"""- print("INSIDE ASYNC CURSOR PAGE BLOCK")## check if file objectif hasattr(response, "data") and isinstance(response.data, list):if all(diff --git a/enterprise/litellm_enterprise/proxy/audit_logging_endpoints.py b/enterprise/litellm_enterprise/proxy/audit_logging_endpoints.pyindex 43369630a41..d1b00420d31 100644--- a/enterprise/litellm_enterprise/proxy/audit_logging_endpoints.py+++ b/enterprise/litellm_enterprise/proxy/audit_logging_endpoints.py@@ -7,8 +7,7 @@ GET - /audit/{id} - Get audit log by idGET - /audit - Get all audit logs"""-from datetime import datetime-from typing import Any, Dict, List, Optional+from typing import Any, Dict, Optional#### AUDIT LOGGING ####from fastapi import APIRouter, Depends, HTTPException, Query@@ -165,5 +164,4 @@ async def get_audit_log_by_id()# Convert to response model- print(audit_log)return AuditLogResponse(**audit_log.model_dump())diff --git a/enterprise/litellm_enterprise/proxy/proxy_server.py b/enterprise/litellm_enterprise/proxy/proxy_server.pyindex 481d65a9433..96503f172a1 100644--- a/enterprise/litellm_enterprise/proxy/proxy_server.py+++ b/enterprise/litellm_enterprise/proxy/proxy_server.py@@ -9,14 +9,11 @@ class EnterpriseProxyConfig:async def load_custom_auth_settings(self, general_settings: dict) -> CustomAuthSettings:- print(f"General settings: {general_settings}")custom_auth_settings = general_settings.get("custom_auth_settings", None)- print(f"Custom auth settings: {custom_auth_settings}")if custom_auth_settings is not None:custom_auth_settings = CustomAuthSettings(mode=custom_auth_settings.get("mode"),)- print(f"Custom auth settings: {custom_auth_settings}")return custom_auth_settingsasync def load_enterprise_config(self, general_settings: dict) -> None: