﻿# How to verify LiteLLM 1.108.3 post-call moderation runs once

Count moderation calls per completed gateway response and separate unintended duplicates from intentional multiple policies.

Author: Retrivium team
Updated: 2026-11-09
Canonical URL: https://retrivium.ai/journal/news-litellm-post-call-moderation-once/
Language: en

LiteLLM 1.108.3 LTS reports a fix for model-level post_call guardrails that checked each response twice and contacted the moderation provider twice. Users may see the same final decision while the gateway does duplicate paid work. The useful upgrade test counts provider requests as well as visible decisions.

## Pick the affected configuration

Create a model alias with one model-level post-call guardrail. Use a test moderation endpoint that records calls without storing user content. Run an allowed case and a case that should be blocked under the fixture policy. Record the final caller outcome and join it to moderation requests using an approved correlation identifier.

## Compare intended and actual policy layers

The LiteLLM guardrails guide describes stages and ways to configure guardrails. A global control and a model-specific control may legitimately run separately. Inventory configured checks before interpreting call totals. A test with one policy is useful for identifying a duplicate, while a second test should cover the normal combination in your deployment.

## Inspect the effect on latency

Compare response latency and moderation provider request volume before and after updating. Use the same model and fixtures. Preserve request counts for allowed and blocked responses separately. A reduction in duplicate calls is evidence about the gateway path. A changed end-to-end latency can also reflect provider timing or concurrent load.

## Exercise failures and retries

Have the test endpoint time out once, then observe what retries the policy permits. Distinguish a deliberate retry following a failed moderation request from two independent checks after one success. Verify the final decision is still enforced when the provider is unavailable and record the behavior your deployment explicitly expects.

## Retain a countable regression

Put the expected number of moderation calls alongside the expected final outcome. Future changes can then preserve both the visible behavior and the amount of external work it requires.

## Primary sources

- [LiteLLM 1.108.3 LTS release](https://github.com/BerriAI/litellm/releases/tag/v1.108.3)
- [LiteLLM guardrails documentation](https://docs.litellm.ai/docs/proxy/guardrails/quick_start)

## Related reading

- [LiteLLM budgets: periods, shared limits and overrun tests](/journal/litellm-budget-reset/)
- [Reconciling tokens and billing in an LLM router](/journal/router-billing-token-accounting/)
