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: handle datetime in _parse_deprecation_date
Cursor Agent590fa227a1e5
diff --git a/litellm/proxy/common_utils/model_deprecation.py b/litellm/proxy/common_utils/model_deprecation.pyindex 1b11fa5abd7..7a614c7cfa8 100644--- a/litellm/proxy/common_utils/model_deprecation.py+++ b/litellm/proxy/common_utils/model_deprecation.py@@ -46,6 +46,8 @@ def _parse_deprecation_date(raw_value: Any) -> Optional[date]:"""if raw_value is None:return None+ if isinstance(raw_value, datetime):+ return raw_value.date()if isinstance(raw_value, date):return raw_valueif not isinstance(raw_value, str):