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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
fix(greptile-review): address backward compatibility and code quality issues
Sameer Kankute1ccf67dd936e
diff --git a/litellm/proxy/video_endpoints/endpoints.py b/litellm/proxy/video_endpoints/endpoints.pyindex 9e8784df0aa..8d1c8059dca 100644--- a/litellm/proxy/video_endpoints/endpoints.py+++ b/litellm/proxy/video_endpoints/endpoints.py@@ -3,7 +3,7 @@from typing import Any, Dict, Optionalimport orjson-from fastapi import APIRouter, Depends, File, Request, Response, UploadFile+from fastapi import APIRouter, Depends, File, Form, Request, Response, UploadFilefrom fastapi.responses import ORJSONResponsefrom litellm.proxy._types import *@@ -530,6 +530,7 @@ async def video_create_character(request: Request,fastapi_response: Response,video: UploadFile = File(...),+ name: str = Form(...),user_api_key_dict: UserAPIKeyAuth = Depends(user_api_key_auth),):"""diff --git a/litellm/types/utils.py b/litellm/types/utils.pyindex f20958f3f84..38425c7ac4a 100644--- a/litellm/types/utils.py+++ b/litellm/types/utils.py@@ -3493,9 +3493,6 @@ class SpecialEnums(Enum):LITELLM_MANAGED_VIDEO_COMPLETE_STR = ("litellm:custom_llm_provider:{};model_id:{};video_id:{}")- LITELLM_MANAGED_VIDEO_CHARACTER_COMPLETE_STR = (- "litellm:custom_llm_provider:{};model_id:{};character_id:{}"- )class ServiceTier(Enum):diff --git a/litellm/types/videos/main.py b/litellm/types/videos/main.pyindex 2ee44944bcc..ec0277c789a 100644--- a/litellm/types/videos/main.py+++ b/litellm/types/videos/main.py@@ -106,14 +106,6 @@ class DecodedVideoId(TypedDict, total=False):video_id: str-class DecodedCharacterId(TypedDict, total=False):- """Structure representing a decoded character ID"""-- custom_llm_provider: Optional[str]- model_id: Optional[str]- character_id: str--class CharacterObject(BaseModel):"""Represents a character created from a video."""