From edaf20b60a649b12a91da63cb9785cdc88392826 Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Sat, 24 Feb 2024 09:28:41 -0800 Subject: [PATCH] docs(enterprise.md): add end user opt out to docs --- docs/my-website/docs/proxy/enterprise.md | 25 +++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/docs/my-website/docs/proxy/enterprise.md b/docs/my-website/docs/proxy/enterprise.md index 3e977802136..a4f3ea7b17e 100644 --- a/docs/my-website/docs/proxy/enterprise.md +++ b/docs/my-website/docs/proxy/enterprise.md @@ -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": [, ...] +}' +``` + +**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": [, ...] +}' +``` + ## Enable Banned Keywords List ```yaml