From 10de02025a4f70b1720e3bb843664074e13abed3 Mon Sep 17 00:00:00 2001 From: sailikhithk Date: Fri, 14 Aug 2026 22:42:00 -0500 Subject: [PATCH] chore: suppress reportPrivateUsage on _gemini_convert_messages_with_history import Adds `# pyright: ignore[reportPrivateUsage]` on the import of the shared `_gemini_convert_messages_with_history` helper. The function is already used by gemini/chat, context_caching, and vertex_and_google_ai_studio_gemini; reusing it here avoids duplicating the OpenAI-to-Gemini message conversion. Resolves basedpyright budget CI failure on PR #36981. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- litellm/llms/vertex_ai/common_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/llms/vertex_ai/common_utils.py b/litellm/llms/vertex_ai/common_utils.py index d3e79ce3fdd..1de2337d8eb 100644 --- a/litellm/llms/vertex_ai/common_utils.py +++ b/litellm/llms/vertex_ai/common_utils.py @@ -1166,7 +1166,7 @@ class VertexAITokenCounter(BaseTokenCounter): else: from litellm.llms.vertex_ai.count_tokens.handler import VertexAITokenCounter from litellm.llms.vertex_ai.gemini.transformation import ( - _gemini_convert_messages_with_history, + _gemini_convert_messages_with_history, # pyright: ignore[reportPrivateUsage] # shared helper already used by gemini/chat, context_caching, and vertex_and_google_ai_studio_gemini ) resolved_contents: Final = (