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
Update lago.py to accomodate API change (#5495) (#5543)
Krish Dholakia7ced9c8c0e3d
diff --git a/docs/my-website/docs/proxy/billing.md b/docs/my-website/docs/proxy/billing.mdindex 78ac389367c..902801cd0a2 100644--- a/docs/my-website/docs/proxy/billing.md+++ b/docs/my-website/docs/proxy/billing.md@@ -23,7 +23,7 @@ Bill internal teams for their usageSet 'lago' as a callback on your proxy config.yaml```yaml-model_name:+model_list:- model_name: fake-openai-endpointlitellm_params:model: openai/fakediff --git a/litellm/integrations/lago.py b/litellm/integrations/lago.pyindex 2bef69faa19..b3db533015e 100644--- a/litellm/integrations/lago.py+++ b/litellm/integrations/lago.py@@ -114,7 +114,7 @@ class LagoLogger(CustomLogger):returned_val = {"event": {"transaction_id": str(uuid.uuid4()),- "external_customer_id": external_customer_id,+ "external_subscription_id": external_customer_id,"code": os.getenv("LAGO_API_EVENT_CODE"),"properties": {"model": model, "response_cost": cost, **usage},}@@ -189,6 +189,8 @@ class LagoLogger(CustomLogger):)response.raise_for_status()++ verbose_logger.debug(f"Logged Lago Object: {response.text}")except Exception as e:if response is not None and hasattr(response, "text"):litellm.print_verbose(f"\nError Message: {response.text}")