Spaces:
Paused
Paused
Download litellm/proxy/_experimental/post_call_rules.py from DesertWolf/test3: direct link, hf CLI and curl.
- Browser
- Download file 170 Bytes
-
https://huggingface.co/spaces/DesertWolf/test3/resolve/main/litellm/proxy/_experimental/post_call_rules.py
- Command line
-
hf download hf://spaces/DesertWolf/test3/litellm/proxy/_experimental/post_call_rules.py
-
curl -L -o post_call_rules.py https://huggingface.co/spaces/DesertWolf/test3/resolve/main/litellm/proxy/_experimental/post_call_rules.py
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 | |