Open ishaan-jaff opened 1 month ago
Hi, here is how is have tested it :
python3 -m venv .venv
.venv/bin/activate
poetry install -E extra_proxy -E proxy
pip install pytest-asyncio
pip install azure-ai-contentsafety
export AZURE_CONTENT_SAFETY_ENDPOINT="https://<INSTANCE_NAME>.cognitiveservices.azure.com/"
export AZURE_CONTENT_SAFETY_API_KEY="<API_KEY>"
poetry run pytest -p no:warnings litellm/tests/test_azure_content_safety.py
====================================== test session starts =======================================
platform darwin -- Python 3.10.14, pytest-7.4.4, pluggy-1.4.0
rootdir: ~/litellm
plugins: anyio-4.3.0, mock-3.12.0, asyncio-0.23.6
asyncio: mode=strict
collected 8 items
litellm/tests/test_azure_content_safety.py ........ [100%]
======================================= 8 passed in 4.36s ========================================
The Feature
@Lunik would appreciate help on this - file is
test_azure_content_safety.py
Motivation, pitch
Twitter / LinkedIn details
No response