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] Proxy: Repair Stale HTTP_METHODS Reference In Lazy OpenAPI Snapshot
Yuneng Jiang61a3923b718a
diff --git a/litellm/proxy/_lazy_openapi_snapshot.py b/litellm/proxy/_lazy_openapi_snapshot.pyindex de118a66d98..c63ff8d0733 100644--- a/litellm/proxy/_lazy_openapi_snapshot.py+++ b/litellm/proxy/_lazy_openapi_snapshot.py@@ -61,12 +61,12 @@ def _normalize_operation_ids(paths: Dict[str, Dict]) -> None:if not isinstance(path_ops, dict):continue- methods = {method for method in path_ops if method in HTTP_METHODS}+ methods = {method for method in path_ops if method in HTTP_METHOD_SUFFIXES}if not methods:continuefor method, operation in path_ops.items():- if method not in HTTP_METHODS or not isinstance(operation, dict):+ if method not in HTTP_METHOD_SUFFIXES or not isinstance(operation, dict):continueoperation_id = operation.get("operationId")