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: broaden RAG ingestion config cleanup to cover AWS endpoint/identity fields
Yuneng Jiang30cb459d1c92
diff --git a/litellm/rag/ingestion/base_ingestion.py b/litellm/rag/ingestion/base_ingestion.pyindex 1317c557d67..f66fc2a6c5e 100644--- a/litellm/rag/ingestion/base_ingestion.py+++ b/litellm/rag/ingestion/base_ingestion.py@@ -73,7 +73,7 @@ class BaseRAGIngestion(ABC):This allows users to specify a credential name in the vector_store configwhich will be resolved from litellm.credential_list. When a storedcredential is used, its values take precedence over caller-supplied- equivalents so the api_key / api_base pair stays consistent with the+ equivalents so endpoint and identity fields stay consistent with thecredential definition."""from litellm.litellm_core_utils.credential_accessor import CredentialAccessor@@ -87,11 +87,16 @@ class BaseRAGIngestion(ABC):returnfor key, value in credential_values.items():self.vector_store_config[key] = value- if (- "api_base" in self.vector_store_config- and "api_base" not in credential_values+ for key in (+ "api_base",+ "aws_sts_endpoint",+ "aws_web_identity_token",):- del self.vector_store_config["api_base"]+ if (+ key in self.vector_store_config+ and key not in credential_values+ ):+ del self.vector_store_config[key]@propertydef custom_llm_provider(self) -> str: