From 75456744d5e480089baa871da678ddc0a1b970f8 Mon Sep 17 00:00:00 2001 From: "M. Mansour" <3020010+marazik@users.noreply.github.com> Date: Sun, 30 Aug 2026 18:28:49 -0400 Subject: [PATCH] Add opt-in toggle for capturing prompts/responses in LiteLLM spend logs store_prompts_in_spend_logs is added commented-out by default, so behavior is unchanged unless explicitly enabled. store_model_in_db is kept on and documented, since it's an unrelated setting (DB-persisted model management, not logging). --- litellm-config.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/litellm-config.yml b/litellm-config.yml index 004bccdea..f887a1156 100644 --- a/litellm-config.yml +++ b/litellm-config.yml @@ -20,6 +20,12 @@ model_list: # This overrides the one in the docker-compose file general_settings: database_url: postgres://litellm:litellm_password@db:5432/litellm + # Persists models added via the Admin UI/API into the database. + store_model_in_db: true + # Uncomment to make LiteLLM capture full prompts and responses in the + # LiteLLM_SpendLogs table (viewable via the Admin UI Logs page, or by + # querying Postgres directly). + # store_prompts_in_spend_logs: true litellm_settings: set_verbose: true