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]

feat: allow to pass custom parent run id (#7651)

Hugues Chocart8576ca8ccb12
diff --git a/litellm/integrations/lunary.py b/litellm/integrations/lunary.py
index 8eb8eef2699..fcd781e44e5 100644
--- a/litellm/integrations/lunary.py
+++ b/litellm/integrations/lunary.py
@@ -153,6 +153,7 @@ class LunaryLogger:
type,
"start",
run_id,
+ parent_run_id=metadata.get("parent_run_id", None),
user_id=user_id,
name=model,
input=parse_messages(input),