blob: 23ec93f5b30d0e80f060c1557b2166cbe38f7d9d (
about) (
plain)
1
2
3
4
5
6
7
8
|
def post_response_rule(input): # receives the model response
print(f"post_response_rule:input={input}") # noqa
if len(input) < 200:
return {
"decision": False,
"message": "This violates LiteLLM Proxy Rules. Response too short",
}
return {"decision": True} # message not required since, request will pass
|