From 6e0ece99f220032bd267777617af77a573972041 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 12 May 2026 16:18:27 +0000 Subject: [PATCH] fix(vertex_ai/agent_engine): add missing Gemini content-filter reasons to hard-stop set --- litellm/llms/vertex_ai/agent_engine/sse_iterator.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/litellm/llms/vertex_ai/agent_engine/sse_iterator.py b/litellm/llms/vertex_ai/agent_engine/sse_iterator.py index 66c5b220870..4b03556e1f6 100644 --- a/litellm/llms/vertex_ai/agent_engine/sse_iterator.py +++ b/litellm/llms/vertex_ai/agent_engine/sse_iterator.py @@ -44,6 +44,10 @@ class VertexAgentEngineResponseIterator(BaseModelResponseIterator): "BLOCKLIST", "PROHIBITED_CONTENT", "SPII", + "LANGUAGE", + "OTHER", + "IMAGE_SAFETY", + "IMAGE_PROHIBITED_CONTENT", } )