Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

fix code qa check

Ishaan Jaffer82d538c6f374
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