From a5f8b4a292b129b0329435e9d76431ebb1edf7e8 Mon Sep 17 00:00:00 2001 From: Sameer Kankute Date: Thu, 30 Apr 2026 18:10:46 +0530 Subject: [PATCH] Fix black issue --- litellm/llms/hosted_vllm/chat/transformation.py | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/litellm/llms/hosted_vllm/chat/transformation.py b/litellm/llms/hosted_vllm/chat/transformation.py index 140833fe5bf..d23420eb3dc 100644 --- a/litellm/llms/hosted_vllm/chat/transformation.py +++ b/litellm/llms/hosted_vllm/chat/transformation.py @@ -2,7 +2,18 @@ Translate from OpenAI's `/v1/chat/completions` to VLLM's `/v1/chat/completions` """ -from typing import Any, Coroutine, Dict, List, Literal, Optional, Tuple, Union, cast, overload +from typing import ( + Any, + Coroutine, + Dict, + List, + Literal, + Optional, + Tuple, + Union, + cast, + overload, +) from litellm.litellm_core_utils.prompt_templates.common_utils import ( _get_image_mime_type_from_url, @@ -42,7 +53,9 @@ class HostedVLLMChatConfig(OpenAIGPTConfig): if not isinstance(custom_tool, dict): custom_tool = {} - tool_name = custom_tool.get("name") or tool.get("name") or f"custom_tool_{idx}" + tool_name = ( + custom_tool.get("name") or tool.get("name") or f"custom_tool_{idx}" + ) tool_description = custom_tool.get("description") or tool.get("description") tool_parameters = custom_tool.get("input_schema")