mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
docs(enterprise.md): add end user opt out to docs
This commit is contained in:
parent
f3be073f72
commit
edaf20b60a
1 changed files with 24 additions and 1 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import Tabs from '@theme/Tabs';
|
||||
import TabItem from '@theme/TabItem';
|
||||
|
||||
# ✨ Enterprise Features - Content Moderation, Blocked Users/Keywords
|
||||
# ✨ Enterprise Features - End-user Opt-out, Content Mod
|
||||
|
||||
Features here are behind a commercial license in our `/enterprise` folder. [**See Code**](https://github.com/BerriAI/litellm/tree/main/enterprise)
|
||||
|
||||
|
|
@ -167,6 +167,29 @@ curl --location 'http://0.0.0.0:8000/chat/completions' \
|
|||
|
||||
:::
|
||||
|
||||
### Using via API
|
||||
|
||||
|
||||
**Block all calls for a user id**
|
||||
|
||||
```
|
||||
curl -X POST "http://0.0.0.0:8000/user/block" \
|
||||
-H "Authorization: Bearer sk-1234" \
|
||||
-D '{
|
||||
"user_ids": [<user_id>, ...]
|
||||
}'
|
||||
```
|
||||
|
||||
**Unblock calls for a user id**
|
||||
|
||||
```
|
||||
curl -X POST "http://0.0.0.0:8000/user/unblock" \
|
||||
-H "Authorization: Bearer sk-1234" \
|
||||
-D '{
|
||||
"user_ids": [<user_id>, ...]
|
||||
}'
|
||||
```
|
||||
|
||||
## Enable Banned Keywords List
|
||||
|
||||
```yaml
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue