diff --git a/litellm/llms/vertex_ai/common_utils.py b/litellm/llms/vertex_ai/common_utils.py index e68470c6b49..d72fc88052d 100644 --- a/litellm/llms/vertex_ai/common_utils.py +++ b/litellm/llms/vertex_ai/common_utils.py @@ -1170,9 +1170,7 @@ class VertexAITokenCounter(BaseTokenCounter): ) resolved_contents: Final = ( - contents - if contents is not None - else _gemini_convert_messages_with_history(messages=messages or []) + contents if contents is not None else _gemini_convert_messages_with_history(messages=messages or []) ) count_tokens_params: Final = {