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
docs clarify how virtual key is read from cache / db
Ishaan Jaff2987b14f3b97
diff --git a/docs/my-website/docs/proxy/architecture.md b/docs/my-website/docs/proxy/architecture.mdindex 8b334c6b25f..eb4f1ec8de7 100644--- a/docs/my-website/docs/proxy/architecture.md+++ b/docs/my-website/docs/proxy/architecture.md@@ -14,6 +14,8 @@ import TabItem from '@theme/TabItem';1. **User Sends Request**: The process begins when a user sends a request to the LiteLLM Proxy Server (Gateway).2. [**Virtual Keys**](../virtual_keys): At this stage the `Bearer` token in the request is checked to ensure it is valid and under it's budget. [Here is the list of checks that run for each request](https://github.com/BerriAI/litellm/blob/ba41a72f92a9abf1d659a87ec880e8e319f87481/litellm/proxy/auth/auth_checks.py#L43)+ - 2.1 Check if the Virtual Key exists in Redis Cache or In Memory Cache+ - 2.2 **If not in Cache**, Lookup Virtual Key in DB3. **Rate Limiting**: The [MaxParallelRequestsHandler](https://github.com/BerriAI/litellm/blob/main/litellm/proxy/hooks/parallel_request_limiter.py) checks the **rate limit (rpm/tpm)** for the the following components:- Global Server Rate Limit