mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
(docs) failing rules
This commit is contained in:
parent
969b55f738
commit
ab7531b6c1
1 changed files with 17 additions and 1 deletions
|
|
@ -42,4 +42,20 @@ curl --location 'http://0.0.0.0:8000/v1/chat/completions' \
|
|||
```
|
||||
---
|
||||
|
||||
This will now check if a response is > len 5, and if it fails, it'll retry a call 3 times before failing.
|
||||
This will now check if a response is > len 5, and if it fails, it'll retry a call 3 times before failing.
|
||||
|
||||
### Response that fail the rule
|
||||
|
||||
This is the response from LiteLLM Proxy on failing a rule
|
||||
|
||||
```json
|
||||
{
|
||||
"error":
|
||||
{
|
||||
"message":"This violates LiteLLM Proxy Rules. Response too short",
|
||||
"type":null,
|
||||
"param":null,
|
||||
"code":500
|
||||
}
|
||||
}
|
||||
```
|
||||
Loading…
Add table
Reference in a new issue