mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
chore: remove unrelated files from PR
Remove .coverage and verify_uk_pii_proxy.sh which were accidentally included in the PR. These files are unrelated to VibeThinker support.
This commit is contained in:
parent
29f8a5c8ae
commit
a02a0ecb1e
2 changed files with 0 additions and 61 deletions
BIN
.coverage
BIN
.coverage
Binary file not shown.
|
|
@ -1,61 +0,0 @@
|
|||
#!/bin/bash
|
||||
# Manual verification script for UK PII entity types in litellm proxy
|
||||
# Tests that UK entities are properly recognized and masked by Presidio
|
||||
|
||||
set -e
|
||||
|
||||
echo "=== UK PII Entity Types Verification Script ==="
|
||||
echo ""
|
||||
echo "This script verifies that UK_PASSPORT, UK_POSTCODE, and UK_VEHICLE_REGISTRATION"
|
||||
echo "entity types are properly recognized by the Presidio guardrail."
|
||||
echo ""
|
||||
|
||||
CONFIG_FILE="/tmp/uk_pii_test_config.yaml"
|
||||
|
||||
cat > "$CONFIG_FILE" <<'EOF'
|
||||
model_list:
|
||||
- model_name: gpt-3.5-turbo
|
||||
litellm_params:
|
||||
model: gpt-3.5-turbo
|
||||
api_key: os.environ/OPENAI_API_KEY
|
||||
|
||||
guardrails:
|
||||
- guardrail_name: "uk-pii-test"
|
||||
litellm_params:
|
||||
guardrail: presidio
|
||||
mode: pre_call
|
||||
default_on: true
|
||||
pii_entities:
|
||||
UK_NHS: MASK
|
||||
UK_NINO: MASK
|
||||
UK_PASSPORT: MASK
|
||||
UK_POSTCODE: MASK
|
||||
UK_VEHICLE_REGISTRATION: MASK
|
||||
EOF
|
||||
|
||||
echo "Created test config at: $CONFIG_FILE"
|
||||
echo ""
|
||||
echo "Starting litellm proxy on port 4000 with UK PII guardrail enabled..."
|
||||
echo ""
|
||||
echo "Run the following commands in separate terminals to test:"
|
||||
echo ""
|
||||
echo "# Terminal 1: Start proxy"
|
||||
echo "python litellm/proxy/proxy_cli.py --config $CONFIG_FILE --detailed_debug"
|
||||
echo ""
|
||||
echo "# Terminal 2: Test UK_PASSPORT"
|
||||
echo "curl -X POST http://localhost:4000/chat/completions \\"
|
||||
echo " -H 'Content-Type: application/json' \\"
|
||||
echo " -d '{\"model\": \"gpt-3.5-turbo\", \"messages\": [{\"role\": \"user\", \"content\": \"My passport is 012345678\"}]}' | jq"
|
||||
echo ""
|
||||
echo "# Terminal 2: Test UK_POSTCODE"
|
||||
echo "curl -X POST http://localhost:4000/chat/completions \\"
|
||||
echo " -H 'Content-Type: application/json' \\"
|
||||
echo " -d '{\"model\": \"gpt-3.5-turbo\", \"messages\": [{\"role\": \"user\", \"content\": \"I live at SW1A 1AA\"}]}' | jq"
|
||||
echo ""
|
||||
echo "# Terminal 2: Test UK_VEHICLE_REGISTRATION"
|
||||
echo "curl -X POST http://localhost:4000/chat/completions \\"
|
||||
echo " -H 'Content-Type: application/json' \\"
|
||||
echo " -d '{\"model\": \"gpt-3.5-turbo\", \"messages\": [{\"role\": \"user\", \"content\": \"My car registration is AB12 CDE\"}]}' | jq"
|
||||
echo ""
|
||||
echo "Expected: The sensitive UK data should be masked (replaced with <UK_PASSPORT>, <UK_POSTCODE>, <UK_VEHICLE_REGISTRATION>)"
|
||||
echo " in the request before being sent to OpenAI."
|
||||
Loading…
Add table
Reference in a new issue