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]

test(passthrough): annotate route match scope as Final

mateo-berribd719c21dc96
diff --git a/tests/test_litellm/proxy/pass_through_endpoints/test_llm_pass_through_endpoints.py b/tests/test_litellm/proxy/pass_through_endpoints/test_llm_pass_through_endpoints.py
index 27d6e4c8585..f631215c03d 100644
--- a/tests/test_litellm/proxy/pass_through_endpoints/test_llm_pass_through_endpoints.py
+++ b/tests/test_litellm/proxy/pass_through_endpoints/test_llm_pass_through_endpoints.py
@@ -2,6 +2,7 @@ import json
import os
import sys
import traceback
+from typing import Final
from unittest import mock
from unittest.mock import AsyncMock, MagicMock, Mock, patch
@@ -2819,7 +2820,7 @@ def _resolve_route_name(method: str, path: str) -> str | None:
from litellm.proxy.proxy_server import app
- scope = {
+ scope: Final = {
"type": "http",
"method": method,
"path": path,