From c57c4e427231b331ceeffe08510b3e181217b423 Mon Sep 17 00:00:00 2001 From: Rick Sanchez <101627789+m4tinbeigi-official@users.noreply.github.com> Date: Tue, 13 Oct 2026 09:54:23 +0330 Subject: [PATCH] style(v1m): format with ruff and satisfy all type-discipline rules --- litellm/llms/v1m.py | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/litellm/llms/v1m.py b/litellm/llms/v1m.py index 06e02d27b2c..90d5884a4b3 100644 --- a/litellm/llms/v1m.py +++ b/litellm/llms/v1m.py @@ -2,7 +2,6 @@ from collections.abc import Mapping from typing import Final from httpx._models import Headers - from litellm.llms.base_llm.chat.transformation import BaseLLMException from litellm.llms.openai.chat.gpt_transformation import OpenAIGPTConfig @@ -18,8 +17,8 @@ class V1MError(BaseLLMException): class V1MConfig(OpenAIGPTConfig): - """ - Configuration for v1m (System One) calibrated decision engine. + """Configuration for v1m (System One) calibrated decision engine. + Website: https://v1m.ir """ @@ -38,12 +37,23 @@ class V1MConfig(OpenAIGPTConfig): def get_config(cls) -> OpenAIGPTConfig: return super().get_config() - def get_supported_openai_params(self, model: str) -> list[str]: # mutable-ok: required list signature for OpenAIGPTConfig + def get_supported_openai_params( + self, model: str + ) -> list[str]: # mutable-ok: required list signature for OpenAIGPTConfig return [ "temperature", "max_tokens", "stream", ] - def get_error_class(self, error_message: str, status_code: int, headers: Mapping[str, str] | Headers) -> BaseLLMException: - return V1MError(status_code=status_code, message=error_message, headers=headers) + def get_error_class( + self, + error_message: str, + status_code: int, + headers: Mapping[str, str] | Headers, + ) -> BaseLLMException: + return V1MError( + status_code=status_code, + message=error_message, + headers=headers, + )