litellm/ui/litellm-dashboard/public/assets/logos
Abhijoy Sarkar c688d9d6bc
Add PromptGuard guardrail integration (#24268)
* Add PromptGuard guardrail integration

Add PromptGuard as a first-class guardrail vendor in LiteLLM's proxy,
supporting prompt injection detection, PII redaction, topic filtering,
entity blocklists, and hallucination detection via PromptGuard's
/api/v1/guard API endpoint.

Backend:
- Add PROMPTGUARD to SupportedGuardrailIntegrations enum
- Implement PromptGuardGuardrail (CustomGuardrail subclass) with
  apply_guardrail handling allow/block/redact decisions
- Add Pydantic config model with api_key, api_base, ui_friendly_name
- Auto-discovered via guardrail_hooks/promptguard/__init__.py registries

Frontend:
- Add PromptGuard partner card to Guardrail Garden with eval scores
- Add preset configuration for quick setup
- Add logo to guardrailLogoMap

Tests:
- 30 unit tests covering configuration, allow/block/redact actions,
  request payload construction, error handling, config model, and
  registry wiring

* Fix redact path and init ordering per review feedback

- P1: Update structured_messages (not just texts) when PromptGuard
  returns a redact decision, so PII redaction is effective for the
  primary LLM message path
- P2: Validate credentials before allocating the HTTPX client so
  resources aren't acquired if PromptGuardMissingCredentials is raised
- Add tests for structured_messages redaction and texts-only redaction

* Harden PromptGuard integration: fail-open, event hooks, images, docs

- Add block_on_error config (default fail-closed, configurable fail-open)
- Declare supported_event_hooks (pre_call, post_call) like other vendors
- Forward images from GenericGuardrailAPIInputs to PromptGuard API
- Wrap API call in try/except for resilient error handling
- Add comprehensive documentation page with config examples
- Register docs page in sidebar alongside other guardrail providers
- Expand test suite from 32 to 40 tests covering new functionality

* Fix dict[str, Any] -> Dict[str, Any] for Python 3.8 compat

* Address remaining Greptile feedback: timeout, redact guard

- Add explicit 10s timeout to async_handler.post() to prevent
  indefinite hangs when PromptGuard API is unresponsive
- Guard redact path: only update inputs["texts"] when the key
  was originally present, avoiding phantom key injection
- Add test: redact with structured_messages only does not create
  texts key (41 tests total)

* Fix CI lint: black formatting, add PromptGuardConfigModel to LitellmParams

- Reformat promptguard.py to match CI black version (parenthesization)
- Add PromptGuardConfigModel as base class of LitellmParams for proper
  Pydantic schema validation, consistent with all other guardrail vendors
- Use litellm_params.block_on_error directly (now a typed field)

* Address Greptile review: redact path, null decision, error context

- P1: Filter _extract_texts_from_messages to user-role messages only,
  preventing system/assistant content from being injected into texts
- P1: Strengthen test_redact_updates_structured_messages assertion from
  weak `in` check to strict equality, catching the injection bug
- P2: Use `result.get("decision") or "allow"` to handle explicit null
  decision values (not just absent keys)
- P2: Wrap bare exception re-raise in GuardrailRaisedException so the
  caller knows which guardrail failed (block_on_error=True path)
- P2: Add static Promptguard entry in guardrail_provider_map so the
  preset works before populateGuardrailProviderMap is called
- Add test for explicit null decision treated as allow

* Fix black formatting: collapse f-string in error message
2026-04-09 08:12:24 -07:00
..
a2a_agent.png [Feat] Agent Gateway - Allow tracking request / response in "Logs" Page (#17449) 2025-12-03 18:57:18 -08:00
ai21.svg [UI QA] - Add all provider models + providers on ui (#22461) 2026-02-28 17:35:08 -08:00
aim_logo.jpeg [UI] Allow adding Bedrock, Presidio, Lakera, AIM guardrails on UI (#10874) 2025-05-15 21:22:56 -07:00
aim_security.jpeg updates guardrail provider logos 2025-10-10 11:39:14 -07:00
aiml_api.svg [Feat] New LLM API - AI/ML API for Image Gen (#13893) 2025-08-23 13:12:44 -07:00
akto.svg Add Akto Guardrails to LiteLLM (#23250) 2026-03-17 14:38:04 -07:00
anthropic.svg set_local_icons 2025-03-19 14:37:57 +00:00
aporia.png updates guardrail provider logos 2025-10-10 11:39:14 -07:00
arize.png [Feat] UI - Allow adding team specific logging callbacks (#12261) 2025-07-02 16:35:22 -07:00
assemblyai_small.png set_local_icons 2025-03-19 14:37:57 +00:00
aws.svg set_local_icons 2025-03-19 14:37:57 +00:00
azure_ai_foundry.png [Feat] A2A Gateway - allow adding Azure Foundry Agents on UI (#17909) 2025-12-12 16:38:04 -08:00
baseten.svg [UI QA] - Add all provider models + providers on ui (#22461) 2026-02-28 17:35:08 -08:00
bedrock.svg set_local_icons 2025-03-19 14:37:57 +00:00
braintrust.png Add logos to callback list (#12244) 2025-07-02 09:55:55 -07:00
cerebras.svg set_local_icons 2025-03-19 14:37:57 +00:00
cloudflare.svg [UI QA] - Add all provider models + providers on ui (#22461) 2026-02-28 17:35:08 -08:00
cohere.svg set_local_icons 2025-03-19 14:37:57 +00:00
cometapi.svg [UI QA] - Add all provider models + providers on ui (#22461) 2026-02-28 17:35:08 -08:00
cursor.svg Development environment setup (#22432) 2026-02-28 14:50:06 -08:00
databricks.svg set_local_icons 2025-03-19 14:37:57 +00:00
datadog.png Add logos to callback list (#12244) 2025-07-02 09:55:55 -07:00
dataforseo.png [Feat] UI - Add logos for search providers (#15872) 2025-10-23 18:00:40 -07:00
deepgram.png [UI] Add Deepgram provider to supported providers list and mappings (#11634) 2025-06-11 12:12:12 -07:00
deepinfra.png Added Voyage, Jinai, Deepinfra and VolcEngine providers on the UI (#13131) 2025-07-30 10:01:07 -07:00
deepseek.svg set_local_icons 2025-03-19 14:37:57 +00:00
elevenlabs.png [Feat] Add Eleven Labs - Speech To Text Support on LiteLLM (#12119) 2025-06-27 17:50:49 -07:00
enkrypt_ai.avif updates guardrail provider logos 2025-10-10 11:39:14 -07:00
exa_ai.png [Feat] UI - Add logos for search providers (#15872) 2025-10-23 18:00:40 -07:00
fal_ai.jpg [Feat] Add FAL AI Image Generations on LiteLLM (#16067) 2025-10-29 13:10:51 -07:00
featherless.svg [UI QA] - Add all provider models + providers on ui (#22461) 2026-02-28 17:35:08 -08:00
figma.svg [Feat] UI - Show logos on MCP Apps page (#23320) 2026-03-10 20:27:13 -07:00
fireworks.svg set_local_icons 2025-03-19 14:37:57 +00:00
friendli.svg [UI QA] - Add all provider models + providers on ui (#22461) 2026-02-28 17:35:08 -08:00
github.svg [UI QA] - Add all provider models + providers on ui (#22461) 2026-02-28 17:35:08 -08:00
github_copilot.svg [UI QA] - Add all provider models + providers on ui (#22461) 2026-02-28 17:35:08 -08:00
gitlab.svg [Feat] UI - Show logos on MCP Apps page (#23320) 2026-03-10 20:27:13 -07:00
gmail.svg [Feat] UI - Show logos on MCP Apps page (#23320) 2026-03-10 20:27:13 -07:00
google.svg set_local_icons 2025-03-19 14:37:57 +00:00
google_drive.svg [Feat] UI - Show logos on MCP Apps page (#23320) 2026-03-10 20:27:13 -07:00
google_pse.png [Feat] UI - Add logos for search providers (#15872) 2025-10-23 18:00:40 -07:00
groq.svg set_local_icons 2025-03-19 14:37:57 +00:00
guardrails_ai.jpeg updates guardrail provider logos 2025-10-10 11:39:14 -07:00
hubspot.svg [Feat] UI - Show logos on MCP Apps page (#23320) 2026-03-10 20:27:13 -07:00
huggingface.svg [UI QA] - Add all provider models + providers on ui (#22461) 2026-02-28 17:35:08 -08:00
hyperbolic.svg [UI QA] - Add all provider models + providers on ui (#22461) 2026-02-28 17:35:08 -08:00
infinity.png added Infinity as a provider in the UI 2025-10-07 10:21:18 -07:00
javelin.png updates guardrail provider logos 2025-10-10 11:39:14 -07:00
jina.png Added Voyage, Jinai, Deepinfra and VolcEngine providers on the UI (#13131) 2025-07-30 10:01:07 -07:00
jira.svg [Feat] UI - Show logos on MCP Apps page (#23320) 2026-03-10 20:27:13 -07:00
lago.svg Add logos to callback list (#12244) 2025-07-02 09:55:55 -07:00
lakeraai.jpeg [UI] Allow adding Bedrock, Presidio, Lakera, AIM guardrails on UI (#10874) 2025-05-15 21:22:56 -07:00
lambda.svg [UI QA] - Add all provider models + providers on ui (#22461) 2026-02-28 17:35:08 -08:00
langfuse.png Add logos to callback list (#12244) 2025-07-02 09:55:55 -07:00
langfuse.svg [UI QA] - Add all provider models + providers on ui (#22461) 2026-02-28 17:35:08 -08:00
langgraph.png [Feat] Agent Gateway - allow adding langgraph, bedrock agent core agents (#17802) 2025-12-10 19:13:50 -08:00
langsmith.png Add logos to callback list (#12244) 2025-07-02 09:55:55 -07:00
lasso.png updates guardrail provider logos 2025-10-10 11:39:14 -07:00
linear.svg [Feat] UI - Show logos on MCP Apps page (#23320) 2026-03-10 20:27:13 -07:00
litellm.jpg [UI] Allow adding Bedrock, Presidio, Lakera, AIM guardrails on UI (#10874) 2025-05-15 21:22:56 -07:00
litellm_logo.jpg add litellm logo jpg 2025-11-07 15:36:49 -08:00
llm_guard.png [UI] Allow adding Bedrock, Presidio, Lakera, AIM guardrails on UI (#10874) 2025-05-15 21:22:56 -07:00
lmstudio.svg [UI QA] - Add all provider models + providers on ui (#22461) 2026-02-28 17:35:08 -08:00
mcp_logo.png [UI] Polish New MCP Server Add Form (#11604) 2025-06-10 17:20:17 -07:00
meta_llama.svg [UI QA] - Add all provider models + providers on ui (#22461) 2026-02-28 17:35:08 -08:00
microsoft_azure.svg set_local_icons 2025-03-19 14:37:57 +00:00
milvus.svg Adding svg 2025-12-15 18:34:34 -08:00
minimax.svg feat: Add MiniMax official logo to UI 2025-12-29 00:21:14 -03:00
mistral.svg set_local_icons 2025-03-19 14:37:57 +00:00
moonshot.svg [UI QA] - Add all provider models + providers on ui (#22461) 2026-02-28 17:35:08 -08:00
morph.svg [UI QA] - Add all provider models + providers on ui (#22461) 2026-02-28 17:35:08 -08:00
nebius.svg [UI QA] - Add all provider models + providers on ui (#22461) 2026-02-28 17:35:08 -08:00
noma_security.png updates guardrail provider logos 2025-10-10 11:39:14 -07:00
notion.svg [Feat] UI - Show logos on MCP Apps page (#23320) 2026-03-10 20:27:13 -07:00
novita.svg [UI QA] - Add all provider models + providers on ui (#22461) 2026-02-28 17:35:08 -08:00
nvidia_nim.svg [UI QA] - Add all provider models + providers on ui (#22461) 2026-02-28 17:35:08 -08:00
nvidia_triton.png ui - add nvidia triton models (#10456) 2025-04-30 21:42:15 -07:00
ollama.svg set_local_icons 2025-03-19 14:37:57 +00:00
openai_small.svg set_local_icons 2025-03-19 14:37:57 +00:00
openmeter.png Add logos to callback list (#12244) 2025-07-02 09:55:55 -07:00
openrouter.svg set_local_icons 2025-03-19 14:37:57 +00:00
oracle.svg fix: added oracle to provider's list (#14835) 2025-09-23 17:21:19 -07:00
otel.png Add logos to callback list (#12244) 2025-07-02 09:55:55 -07:00
palo_alto_networks.jpeg updates guardrail provider logos 2025-10-10 11:39:14 -07:00
pangea.png updates guardrail provider logos 2025-10-10 11:39:14 -07:00
parallel_ai.png [Feat] UI - Add logos for search providers (#15872) 2025-10-23 18:00:40 -07:00
perplexity-ai.svg set_local_icons 2025-03-19 14:37:57 +00:00
perplexity.png [Feat] UI - Add logos for search providers (#15872) 2025-10-23 18:00:40 -07:00
pillar.jpeg updates guardrail provider logos 2025-10-10 11:39:14 -07:00
postgresql.svg [Feat] New Vector Store - PG Vector (#12667) 2025-07-16 18:17:05 -07:00
presidio.png [Feat] Add endpoints for adding, deleting, editing guardrails in DB (#10833) 2025-05-14 14:19:51 -07:00
prompt_security.png Prompt security litellm (#16365) 2025-11-24 11:44:20 -08:00
promptguard.svg Add PromptGuard guardrail integration (#24268) 2026-04-09 08:12:24 -07:00
pydantic.svg [Feat] New provider - Agent Gateway, add pydantic ai agents (#18013) 2025-12-15 17:40:58 -08:00
qwen.png [Fixes] Using Qwen API Tiered Pricing (#14479) 2025-09-11 20:07:41 -07:00
recraft.svg [UI QA] - Add all provider models + providers on ui (#22461) 2026-02-28 17:35:08 -08:00
replicate.svg [UI QA] - Add all provider models + providers on ui (#22461) 2026-02-28 17:35:08 -08:00
runway.png [UI] Add RunwayML on Admin UI supported models/providers (#16606) 2025-11-13 21:46:35 -08:00
s3_vector.png [Feat] RAG API - Add s3_vectors as provider on /vector_store/search API + UI for creating + PDF support for /rag/ingest (#19895) 2026-01-27 16:30:59 -08:00
salesforce.svg [Feat] UI - Show logos on MCP Apps page (#23320) 2026-03-10 20:27:13 -07:00
sambanova.svg style: update sambanova logos (#12431) 2025-07-08 13:56:50 -07:00
sap.png fix(sap): add sap as provider for list in add credentials component in proxy ui, add sap logo (#18375) 2025-12-23 22:29:51 +05:30
search1api.png [Feat] UI - Add logos for search providers (#15872) 2025-10-23 18:00:40 -07:00
secret_detect.png [UI] Allow adding Bedrock, Presidio, Lakera, AIM guardrails on UI (#10874) 2025-05-15 21:22:56 -07:00
sentry.svg [Feat] UI - Show logos on MCP Apps page (#23320) 2026-03-10 20:27:13 -07:00
shopify.svg [Feat] UI - Show logos on MCP Apps page (#23320) 2026-03-10 20:27:13 -07:00
slack.svg [Feat] UI - Show logos on MCP Apps page (#23320) 2026-03-10 20:27:13 -07:00
snowflake.svg [Feat] UI - add snowflake on UI (#15083) 2025-09-30 13:16:04 -07:00
stripe.svg [Feat] UI - Show logos on MCP Apps page (#23320) 2026-03-10 20:27:13 -07:00
tavily.png [Feat] UI - Add logos for search providers (#15872) 2025-10-23 18:00:40 -07:00
togetherai.svg set_local_icons 2025-03-19 14:37:57 +00:00
topaz.svg [UI QA] - Add all provider models + providers on ui (#22461) 2026-02-28 17:35:08 -08:00
twilio.svg [Feat] UI - Show logos on MCP Apps page (#23320) 2026-03-10 20:27:13 -07:00
v0.svg [UI QA] - Add all provider models + providers on ui (#22461) 2026-02-28 17:35:08 -08:00
vercel.svg [UI QA] - Add all provider models + providers on ui (#22461) 2026-02-28 17:35:08 -08:00
vllm.png [ui/dashboard] add support for host_vllm (#13885) 2025-08-22 09:39:40 -07:00
volcengine.png Added Voyage, Jinai, Deepinfra and VolcEngine providers on the UI (#13131) 2025-07-30 10:01:07 -07:00
voyage.webp Added Voyage, Jinai, Deepinfra and VolcEngine providers on the UI (#13131) 2025-07-30 10:01:07 -07:00
watsonx.svg [UI QA] - Add all provider models + providers on ui (#22461) 2026-02-28 17:35:08 -08:00
xai.svg set_local_icons 2025-03-19 14:37:57 +00:00
xinference.svg [UI QA] - Add all provider models + providers on ui (#22461) 2026-02-28 17:35:08 -08:00
zapier.svg [Feat] UI - Show logos on MCP Apps page (#23320) 2026-03-10 20:27:13 -07:00
zscaler.svg feat(ui): added UI for Zscaler AI Guard (#21077) 2026-02-12 20:27:44 -08:00