Closed panyuenlau closed 7 months ago
check_url_status()
check_openai_prompt_status()
check_gemini_prompt_status()
Threats: D, L, P, , D, i, s, a, b, l, e, d
Example output with the changes in this PR:
When DLP is enabled and there are threats:
{'prompt_injection': {'openai': 'OpenAI Prompt Injection Detection disabled', 'gemini': 'Gemini Prompt Injection Detection disabled'}, 'url_verdict': 'No Malware URL(s)', 'threats': 'Medical Prescriptions (US), Email Address'}
When DLP is disabled or no threats:
{'prompt_injection': {'openai': 'OpenAI Prompt Injection Detection disabled', 'gemini': 'Gemini Prompt Injection Detection disabled'}, 'url_verdict': 'Malware URL(s)', 'threats': 'No Threats Detected or DLP Disabled'}
great fixes @panyuenlau! @BenderScript, lmk when you bump version of this repo so I'll pull it in and refresh internal version, thanks
check_url_status()
check_openai_prompt_status()
check_gemini_prompt_status()
check_gemini_prompt_status()
Threats: D, L, P, , D, i, s, a, b, l, e, d
in the response when umbrella is disabledExample output with the changes in this PR:
When DLP is enabled and there are threats:
When DLP is disabled or no threats: