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
style: format s3 vectors transformation and rag endpoints
mateo-berricf4738c3b736
diff --git a/litellm/llms/s3_vectors/vector_stores/transformation.py b/litellm/llms/s3_vectors/vector_stores/transformation.pyindex 3c1b0025d08..733358381fe 100644--- a/litellm/llms/s3_vectors/vector_stores/transformation.py+++ b/litellm/llms/s3_vectors/vector_stores/transformation.py@@ -68,7 +68,9 @@ class S3VectorsVectorStoreConfig(BaseVectorStoreConfig, BaseAWSLLM):"""Return the router iff it serves ``embedding_model`` as a deployment."""if router is None:return None- model_list: Final = [dict(m) for m in (router.get_model_list() or ())] # mutable-ok: resolve_embedding_router requires list[dict]+ model_list: Final = [+ dict(m) for m in (router.get_model_list() or ())+ ] # mutable-ok: resolve_embedding_router requires list[dict]return resolve_embedding_router(embedding_model=embedding_model, llm_router=router, llm_model_list=model_list)def transform_search_vector_store_request(diff --git a/litellm/proxy/rag_endpoints/endpoints.py b/litellm/proxy/rag_endpoints/endpoints.pyindex 31998d2040e..5c392c30018 100644--- a/litellm/proxy/rag_endpoints/endpoints.py+++ b/litellm/proxy/rag_endpoints/endpoints.py@@ -717,7 +717,10 @@ async def rag_query(vector_store_id=retrieval_config["vector_store_id"],user_api_key_dict=user_api_key_dict,)- merged_retrieval_config: Final = {**store_data, **retrieval_config} # mutable-ok: litellm.aquery requires a plain dict payload+ merged_retrieval_config: Final = {+ **store_data,+ **retrieval_config,+ } # mutable-ok: litellm.aquery requires a plain dict payload# Add litellm datarequest_data: dict[str, object] = {}