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 linting

Ishaan Jaffer78741ebd5650
diff --git a/litellm/proxy/pass_through_endpoints/pass_through_endpoints.py b/litellm/proxy/pass_through_endpoints/pass_through_endpoints.py
index f210dbba071..2f101b13d83 100644
--- a/litellm/proxy/pass_through_endpoints/pass_through_endpoints.py
+++ b/litellm/proxy/pass_through_endpoints/pass_through_endpoints.py
@@ -2086,9 +2086,9 @@ async def initialize_pass_through_endpoints(
)
# remove the ones that are not visited from the list
- for endpoint in registered_pass_through_endpoints:
- if endpoint not in visited_endpoints:
- InitPassThroughEndpointHelpers.remove_endpoint_routes(endpoint)
+ for endpoint_key in registered_pass_through_endpoints:
+ if endpoint_key not in visited_endpoints:
+ InitPassThroughEndpointHelpers.remove_endpoint_routes(endpoint_key)
async def _get_pass_through_endpoints_from_db(