From 4e8c6d1b100426086d93ecc7ec55a1155b7d9f0d Mon Sep 17 00:00:00 2001 From: Ishaan Jaffer Date: Mon, 2 Feb 2026 18:30:42 -0800 Subject: [PATCH] fix linting --- .../model_prices_and_context_window_backup.json | 14 ++++++++++++++ .../mcp_server/semantic_tool_filter.py | 5 ++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.json index 6aeb51d5817..485bee4f191 100644 --- a/litellm/model_prices_and_context_window_backup.json +++ b/litellm/model_prices_and_context_window_backup.json @@ -21488,6 +21488,20 @@ "supports_tool_choice": true, "supports_web_search": true }, + "moonshot/kimi-k2.5": { + "cache_read_input_token_cost": 1e-07, + "input_cost_per_token": 6e-07, + "litellm_provider": "moonshot", + "max_input_tokens": 262144, + "max_output_tokens": 262144, + "max_tokens": 262144, + "mode": "chat", + "output_cost_per_token": 3e-06, + "source": "https://platform.moonshot.ai/docs/pricing/chat", + "supports_function_calling": true, + "supports_tool_choice": true, + "supports_vision": true + }, "moonshot/kimi-latest": { "cache_read_input_token_cost": 1.5e-07, "input_cost_per_token": 2e-06, diff --git a/litellm/proxy/_experimental/mcp_server/semantic_tool_filter.py b/litellm/proxy/_experimental/mcp_server/semantic_tool_filter.py index c83ef13a64a..b01bf142385 100644 --- a/litellm/proxy/_experimental/mcp_server/semantic_tool_filter.py +++ b/litellm/proxy/_experimental/mcp_server/semantic_tool_filter.py @@ -8,7 +8,6 @@ from typing import TYPE_CHECKING, Any, Dict, List, Optional from litellm._logging import verbose_logger if TYPE_CHECKING: - from mcp.types import Tool as MCPTool from semantic_router.routers import SemanticRouter from litellm.router import Router @@ -88,8 +87,8 @@ class SemanticMCPToolFilter: description = tool.get("description", name) else: # MCPTool object - name = tool.name - description = tool.description or tool.name + name = str(tool.name) + description = str(tool.description) if tool.description else str(tool.name) return name, description