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
Merge remote-tracking branch 'origin/litellm_internal_staging' into litellm_spend_logs_keep_service_account_key_readable
mateo-berri01dd000ccb47
diff --cc litellm/proxy/spend_tracking/spend_tracking_utils.pyindex a1f0dbfcefe,a37c3ba4405..9ea2170d6ab--- a/litellm/proxy/spend_tracking/spend_tracking_utils.py+++ b/litellm/proxy/spend_tracking/spend_tracking_utils.py@@@ -14,9 -14,8 +14,10 @@@ from litellm.constants importLITELLM_PROXY_MASTER_KEY_ALIAS,LITELLM_TRUNCATED_PAYLOAD_FIELD,LITELLM_TRUNCATION_DB_SAFEGUARD_NOTE,+ LITTELM_CLI_SERVICE_ACCOUNT_NAME,+ LITTELM_INTERNAL_HEALTH_SERVICE_ACCOUNT_NAME,REDACTED_BY_LITELM_STRING,+ SESSION_ID_OMITTED_METADATA_KEY,)from litellm.constants import (MAX_STRING_LENGTH_PROMPT_IN_DB as DEFAULT_MAX_STRING_LENGTH_PROMPT_IN_DB,diff --cc tests/test_litellm/proxy/spend_tracking/test_spend_tracking_utils.pyindex f2164547a6f,fb0cdc175b1..95ddc4477e1--- a/tests/test_litellm/proxy/spend_tracking/test_spend_tracking_utils.py+++ b/tests/test_litellm/proxy/spend_tracking/test_spend_tracking_utils.py@@@ -13,13 -13,10 +13,14 @@@ import litellfrom litellm.constants import (LITELLM_TRUNCATED_PAYLOAD_FIELD,LITELLM_TRUNCATION_DB_SAFEGUARD_NOTE,+ LITTELM_CLI_SERVICE_ACCOUNT_NAME,+ LITTELM_INTERNAL_HEALTH_SERVICE_ACCOUNT_NAME,REDACTED_BY_LITELM_STRING,+ SESSION_ID_OMITTED_METADATA_KEY,)from litellm.litellm_core_utils.safe_json_dumps import safe_dumps+from litellm.proxy._types import UserAPIKeyAuth+from litellm.proxy.litellm_pre_call_utils import LiteLLMProxyRequestSetupfrom litellm.proxy.spend_tracking.spend_tracking_utils import (_get_messages_for_spend_logs_payload,_get_proxy_server_request_for_spend_logs_payload,