From 841ca956c015ae173340270812070020104eaf34 Mon Sep 17 00:00:00 2001 From: Yuta Saito Date: Mon, 29 Dec 2025 07:25:15 +0900 Subject: [PATCH] docs: add --- docs/my-website/docs/proxy/ui_logs.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/my-website/docs/proxy/ui_logs.md b/docs/my-website/docs/proxy/ui_logs.md index 61f328011c3..c77399b494d 100644 --- a/docs/my-website/docs/proxy/ui_logs.md +++ b/docs/my-website/docs/proxy/ui_logs.md @@ -53,6 +53,17 @@ general_settings: disable_spend_logs: True # Disable writing spend logs to DB ``` +## Store Proxy-Modified Responses in Spend Logs + +By default the spend log records the upstream LLM response (before any proxy guardrails or rewrites). Opt in to storing the proxy-mutated response with: + +```yaml +general_settings: + spend_logs_store_proxy_response: true +``` + +When set to `true`, UI logs show the final post-guardrail response seen by end users. Set to `false` to keep logging the raw LLM response. + ## Automatically Deleting Old Spend Logs If you're storing spend logs, it might be a good idea to delete them regularly to keep the database fast.