From 82d538c6f374255e86f794f90b74d9734c54ca3d Mon Sep 17 00:00:00 2001 From: Ishaan Jaffer Date: Mon, 10 Nov 2025 17:42:16 -0800 Subject: [PATCH] fix code qa check --- .../model_prices_and_context_window_backup.json | 14 ++++++++++++++ .../management_endpoints/customer_endpoints.py | 3 +-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.json index f571dfb5243..a887579a1ed 100644 --- a/litellm/model_prices_and_context_window_backup.json +++ b/litellm/model_prices_and_context_window_backup.json @@ -16624,6 +16624,20 @@ "source": "https://platform.moonshot.ai/docs/pricing", "supports_vision": true }, + "moonshot/kimi-k2-thinking": { + "cache_read_input_token_cost": 1.5e-7, + "input_cost_per_token": 6e-7, + "litellm_provider": "moonshot", + "max_input_tokens": 262144, + "max_output_tokens": 262144, + "max_tokens": 262144, + "mode": "chat", + "output_cost_per_token": 2.5e-6, + "source": "https://platform.moonshot.ai/docs/pricing/chat#generation-model-kimi-k2", + "supports_function_calling": true, + "supports_tool_choice": true, + "supports_web_search": true + }, "moonshot/moonshot-v1-128k": { "input_cost_per_token": 2e-06, "litellm_provider": "moonshot", diff --git a/litellm/proxy/management_endpoints/customer_endpoints.py b/litellm/proxy/management_endpoints/customer_endpoints.py index 4b6ceefb751..3afbbdd5a4b 100644 --- a/litellm/proxy/management_endpoints/customer_endpoints.py +++ b/litellm/proxy/management_endpoints/customer_endpoints.py @@ -10,11 +10,10 @@ All /customer management endpoints """ #### END-USER/CUSTOMER MANAGEMENT #### -import traceback from typing import List, Optional import fastapi -from fastapi import APIRouter, Depends, HTTPException, Request, status +from fastapi import APIRouter, Depends, HTTPException, Request import litellm from litellm._logging import verbose_proxy_logger