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
Merge remote-tracking branch 'origin/litellm_internal_staging' into litellm_passthrough_live_credentials
mateo-berri18572fe86f42
diff --cc basedpyright-code-budget.jsonindex 4df85ce3e52,ab5c6dcceaf..ac8d0fd3a8d--- a/basedpyright-code-budget.json+++ b/basedpyright-code-budget.json@@@ -111,7 -111,7 +111,7 @@@"limit": 20309},"reportUnknownVariableType": {- "limit": 31977- "limit": 31880++ "limit": 31879},"reportUnnecessaryCast": {"limit": 124diff --cc litellm/types/router.pyindex 86811dc5b3c,43b5d20e80d..08780064162--- a/litellm/types/router.py+++ b/litellm/types/router.py@@@ -378,37 -376,34 +376,37 @@@ class LiteLLMParamsTypedDict(TypedDictCONFIGURABLE_CLIENTSIDE_AUTH_PARAMS # for allowing api base switching on finetuned models)## DROP PARAMS ##- drop_params: Optional[bool]+ drop_params: bool | None## RESPONSES API → CHAT COMPLETIONS BRIDGE ##- use_chat_completions_api: Optional[bool]+ use_chat_completions_api: bool | None+ ## PASS-THROUGH ENDPOINTS ##+ use_in_pass_through: bool | None+ litellm_credential_name: str | None## UNIFIED PROJECT/REGION ##- region_name: Optional[str]+ region_name: str | None## VERTEX AI ##- vertex_project: Optional[str]- vertex_location: Optional[str]+ vertex_project: str | None+ vertex_location: str | None## AWS BEDROCK / SAGEMAKER ##- aws_access_key_id: Optional[str]- aws_secret_access_key: Optional[str]- aws_region_name: Optional[str]- aws_bedrock_project_id: Optional[str]+ aws_access_key_id: str | None+ aws_secret_access_key: str | None+ aws_region_name: str | None+ aws_bedrock_project_id: str | None## AWS S3 VECTORS ##- vector_bucket_name: Optional[str]- index_name: Optional[str]- embedding_model: Optional[str]+ vector_bucket_name: str | None+ index_name: str | None+ embedding_model: str | None## IBM WATSONX ##- watsonx_region_name: Optional[str]+ watsonx_region_name: str | None## CUSTOM PRICING ##- input_cost_per_token: Optional[float]- output_cost_per_token: Optional[float]- input_cost_per_second: Optional[float]- output_cost_per_second: Optional[float]- output_cost_per_second_1080p: Optional[float]- num_retries: Optional[int]+ input_cost_per_token: float | None+ output_cost_per_token: float | None+ input_cost_per_second: float | None+ output_cost_per_second: float | None+ output_cost_per_second_1080p: float | None+ num_retries: int | None## MOCK RESPONSES ##- mock_response: Optional[Union[str, ModelResponse, Exception]]+ mock_response: str | ModelResponse | Exception | None# routing params# use this for tag-based routingdiff --cc ruff-strict-budget.jsonindex dca45e24797,0b382b2170a..c4c3f2ae3f5--- a/ruff-strict-budget.json+++ b/ruff-strict-budget.json@@@ -1,21 -1,21 +1,21 @@@{"ANN001": {- "limit": 2849+ "limit": 3132},"ANN002": {- "limit": 65+ "limit": 71},"ANN003": {- "limit": 776+ "limit": 840},"ANN201": {- "limit": 1960- "limit": 2039++ "limit": 2038},"ANN202": {- "limit": 868+ "limit": 871},"ANN204": {- "limit": 669+ "limit": 715},"ANN205": {"limit": 115diff --cc type-discipline-budget.jsonindex 94ea390feec,3444be73ccd..2b5a15c237f--- a/type-discipline-budget.json+++ b/type-discipline-budget.json@@@ -3,10 -3,10 +3,10 @@@"limit": 23346},"LIT002": {- "limit": 27226- "limit": 27224++ "limit": 27223},"LIT003": {- "limit": 286+ "limit": 269},"LIT004": {"limit": 43