From 68eb0bbfea083887300c9dd8dd5e6055fda2a74d Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Sat, 22 Mar 2025 20:23:06 -0700 Subject: [PATCH] docs: cleanup docs --- docs/my-website/docs/proxy/guardrails/custom_guardrail.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/my-website/docs/proxy/guardrails/custom_guardrail.md b/docs/my-website/docs/proxy/guardrails/custom_guardrail.md index 3f10fd81637..7431dfc0f3b 100644 --- a/docs/my-website/docs/proxy/guardrails/custom_guardrail.md +++ b/docs/my-website/docs/proxy/guardrails/custom_guardrail.md @@ -10,11 +10,11 @@ Use this is you want to write code to run a custom guardrail ### 1. Write a `CustomGuardrail` Class -A CustomGuardrail has 3 methods to enforce guardrails +A CustomGuardrail has 4 methods to enforce guardrails - `async_pre_call_hook` - (Optional) modify input or reject request before making LLM API call - `async_moderation_hook` - (Optional) reject request, runs while making LLM API call (help to lower latency) - `async_post_call_success_hook`- (Optional) apply guardrail on input/output, runs after making LLM API call - +- `async_post_call_streaming_iterator_hook` - (Optional) pass the entire stream to the guardrail **[See detailed spec of methods here](#customguardrail-methods)** **Example `CustomGuardrail` Class**