Using litellm with azure.com

Python integration

Install
pip install litellm
Quick start
import litellm

# Set your API key
client = litellm.Client(api_key="YOUR_API_KEY")
gets all the Term Lists
curl \
  -H "Ocp-Apim-Subscription-Key: $API_KEY" \
  /contentmoderator/lists/v1.0/termlists
Gets all the Image Lists.
curl \
  -H "Ocp-Apim-Subscription-Key: $API_KEY" \
  /contentmoderator/lists/v1.0/imagelists
Returns list Id details of the term list with list Id equal to list Id passed.
curl \
  -H "Ocp-Apim-Subscription-Key: $API_KEY" \
  /contentmoderator/lists/v1.0/termlists/{listId}
SDK on GitHub 📄 API Docs
SDK
litellm
Python
API
azure.com
azure.com:cognitiveservices-ContentModerator
At a glance
Language Python
Endpoints35