TestLLM / litellm /proxy /_experimental /post_call_rules.py
Raju2024's picture
Upload 1072 files
e3278e4 verified
raw
history blame contribute delete
170 Bytes
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