mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-19 00:01:29 +00:00
docs: add
This commit is contained in:
parent
2d98a5c45d
commit
841ca956c0
1 changed files with 11 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue