litellm-mirror/litellm-proxy-extras/litellm_proxy/_experimental/post_call_rules.py
2025-04-23 17:33:29 -07:00

4 lines
170 B
Python

def my_custom_rule(input): # receives the model response
# if len(input) < 5: # trigger fallback if the model response is too short
return False
return True