From 2ce0edcca9eb3368c8eb1188c34457f0701d8063 Mon Sep 17 00:00:00 2001 From: Marc Abramowitz Date: Wed, 10 Jul 2024 17:02:56 -0700 Subject: [PATCH] Move JSX stuff so first line of file is heading This prevents VS Code from displaying a warning about the file not starting with a heading. --- docs/my-website/docs/proxy/logging.md | 9 ++++----- litellm/proxy/proxy_server.py | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/docs/my-website/docs/proxy/logging.md b/docs/my-website/docs/proxy/logging.md index c2f583366c..7a9c7cf7a8 100644 --- a/docs/my-website/docs/proxy/logging.md +++ b/docs/my-website/docs/proxy/logging.md @@ -1,12 +1,11 @@ -import Image from '@theme/IdealImage'; -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - - # 🪢 Logging - Langfuse, OpenTelemetry, Custom Callbacks, DataDog, s3 Bucket, Sentry, Athina, Azure Content-Safety Log Proxy Input, Output, Exceptions using Langfuse, OpenTelemetry, Custom Callbacks, DataDog, DynamoDB, s3 Bucket +import Image from '@theme/IdealImage'; +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + ## Table of Contents - [Logging to Langfuse](#logging-proxy-inputoutput---langfuse) diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.py index 69f63d9853..fd445b51b1 100644 --- a/litellm/proxy/proxy_server.py +++ b/litellm/proxy/proxy_server.py @@ -2791,7 +2791,7 @@ async def chat_completion( ## LOGGING OBJECT ## - initialize logging object for logging success/failure events for call ## IMPORTANT Note: - initialize this before running pre-call checks. Ensures we log rejected requests to langfuse. - data["litellm_call_id"] = str(uuid.uuid4()) + data["litellm_call_id"] = request.headers.get('x-litellm-call-id', str(uuid.uuid4())) logging_obj, data = litellm.utils.function_setup( original_function="acompletion", rules_obj=litellm.utils.Rules(),