Skip to content

Conversation

krrishdholakia
Copy link
Contributor

@krrishdholakia krrishdholakia commented Feb 23, 2024

Addresses - #2121

How to set this?

litellm_settings: 
     callbacks: ["banned_keywords"]
     banned_keywords_list: ["hello"] # can also be a .txt file - e.g.: `/relative/path/keywords.txt`

Test this

curl --location 'http://0.0.0.0:8000/chat/completions' \
--header 'Content-Type: application/json' \
--data ' {
      "model": "gpt-3.5-turbo",
      "messages": [
        {
          "role": "user",
          "content": "Hello world!"
        }
      ]
    }
'

Copy link

railway-app bot commented Feb 23, 2024

This PR was not deployed automatically as @krrishdholakia does not have access to the Railway project.

In order to get automatic PR deploys, please add @krrishdholakia to your team on Railway.

1 similar comment
Copy link

railway-app bot commented Feb 23, 2024

This PR was not deployed automatically as @krrishdholakia does not have access to the Railway project.

In order to get automatic PR deploys, please add @krrishdholakia to your team on Railway.

Copy link

vercel bot commented Feb 23, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
litellm ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 23, 2024 6:22am
litellm-dashboard ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 23, 2024 6:22am

@krrishdholakia krrishdholakia changed the title Litellm banned keywords list Allow admin to ban keywords on proxy Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant