-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature]: Add working local tests for Azure Content Safety Callbacks #3591
Labels
enhancement
New feature or request
Comments
Hi, here is how is have tested it : Prepare test envpython3 -m venv .venv
.venv/bin/activate
poetry install -E extra_proxy -E proxy
pip install pytest-asyncio
pip install azure-ai-contentsafety Running the testexport 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 Result====================================== 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 ======================================== |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The Feature
@Lunik would appreciate help on this - file is
test_azure_content_safety.py
Motivation, pitch
Twitter / LinkedIn details
No response
The text was updated successfully, but these errors were encountered: