From d619199ceed7af708ade67be91cca00a71d65299 Mon Sep 17 00:00:00 2001 From: Sameer Kankute Date: Mon, 15 Dec 2025 12:00:04 +0530 Subject: [PATCH] Fix: lint error --- litellm/llms/vertex_ai/ocr/deepseek_transformation.py | 4 ++-- tests/ocr_tests/test_ocr_vertex_ai.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/litellm/llms/vertex_ai/ocr/deepseek_transformation.py b/litellm/llms/vertex_ai/ocr/deepseek_transformation.py index db7f824a35..b16f73af3f 100644 --- a/litellm/llms/vertex_ai/ocr/deepseek_transformation.py +++ b/litellm/llms/vertex_ai/ocr/deepseek_transformation.py @@ -109,7 +109,7 @@ class VertexAIDeepSeekOCRConfig(BaseOCRConfig): # Get API base URL if api_base is None: - api_base = f"https://aiplatform.googleapis.com" + api_base = "https://aiplatform.googleapis.com" # Ensure no trailing slash api_base = api_base.rstrip("/") @@ -195,7 +195,7 @@ class VertexAIDeepSeekOCRConfig(BaseOCRConfig): data.update(chat_completion_params) - verbose_logger.debug(f"Vertex AI DeepSeek OCR: Transformed request to chat completion format") + verbose_logger.debug("Vertex AI DeepSeek OCR: Transformed request to chat completion format") return OCRRequestData(data=data, files=None) diff --git a/tests/ocr_tests/test_ocr_vertex_ai.py b/tests/ocr_tests/test_ocr_vertex_ai.py index 1c88736bd3..6e7ada1d8b 100644 --- a/tests/ocr_tests/test_ocr_vertex_ai.py +++ b/tests/ocr_tests/test_ocr_vertex_ai.py @@ -85,7 +85,7 @@ class TestVertexAIDeepSeekOCR(BaseOCRTest): """ load_vertex_ai_credentials() return { - "model": "vertex_ai/deepseek-ai/deepseek-ocr-maas", + "model": "vertex_ai/deepseek-ocr-maas", "vertex_location": "us-central1", } @@ -99,7 +99,7 @@ def test_vertex_ai_ocr_routing(): from litellm.llms.vertex_ai.ocr.transformation import VertexAIOCRConfig # Test DeepSeek OCR routing - deepseek_config = get_vertex_ai_ocr_config("vertex_ai/deepseek-ai/deepseek-ocr-maas") + deepseek_config = get_vertex_ai_ocr_config("vertex_ai/deepseek-ocr-maas") assert isinstance(deepseek_config, VertexAIDeepSeekOCRConfig), \ "DeepSeek model should route to VertexAIDeepSeekOCRConfig"