Merge pull request #4651 from msabramo/docs-logging-cleanup

Docs: Miscellaneous cleanup of `docs/my-website/docs/proxy/logging.md`
This commit is contained in:
Krish Dholakia 2024-07-11 21:52:20 -07:00 committed by GitHub
commit 79d6b69d1c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 65 additions and 53 deletions

View file

@ -2796,7 +2796,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(),