From 92b3913655c3ae71417eb37ca7d2107aa1e9be87 Mon Sep 17 00:00:00 2001 From: Tai An Date: Fri, 29 May 2026 12:06:10 -0700 Subject: [PATCH] style: apply black formatting to vertex gemini accumulator --- .../llms/vertex_ai/gemini/vertex_and_google_ai_studio_gemini.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/llms/vertex_ai/gemini/vertex_and_google_ai_studio_gemini.py b/litellm/llms/vertex_ai/gemini/vertex_and_google_ai_studio_gemini.py index 03cd30fa48f..45eac0088d4 100644 --- a/litellm/llms/vertex_ai/gemini/vertex_and_google_ai_studio_gemini.py +++ b/litellm/llms/vertex_ai/gemini/vertex_and_google_ai_studio_gemini.py @@ -3497,7 +3497,7 @@ class ModelResponseIterator: # the growing buffer on every chunk -- the empty-string flush from # __next__/__anext__ at StopIteration still forces a final attempt. _stripped = message.rstrip() - if _stripped and _stripped[-1] not in ('}', ']'): + if _stripped and _stripped[-1] not in ("}", "]"): return None _full_json = "".join(self.accumulated_json_chunks) if not _full_json: