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_decrease_anys_opus5_r4
mateo-berri5b96995b95ee
diff --cc litellm/llms/openai/vector_stores/transformation.pyindex 923ccca85f6,f6c093f2e2a..125e5168c69--- a/litellm/llms/openai/vector_stores/transformation.py+++ b/litellm/llms/openai/vector_stores/transformation.py@@@ -99,8 -98,7 +98,7 @@@ class OpenAIVectorStoreConfig(BaseVectoapi_base: str,litellm_logging_obj: LiteLLMLoggingObj,litellm_params: dict,- extra_body: dict[str, Any] | None = None,+ extra_body: dict[str, object] | None = None,- router: "Router | None" = None,) -> tuple[str, dict]:encoded_vector_store_id: Final = encode_url_path_segment(vector_store_id, field_name="vector_store_id")url: Final = f"{api_base}/{encoded_vector_store_id}/search"diff --cc litellm/llms/ragflow/vector_stores/transformation.pyindex 6892f5ed879,282cb7a92a7..38a06a37f7e--- a/litellm/llms/ragflow/vector_stores/transformation.py+++ b/litellm/llms/ragflow/vector_stores/transformation.py@@@ -93,8 -91,7 +92,7 @@@ class RAGFlowVectorStoreConfig(BaseVectapi_base: str,litellm_logging_obj: LiteLLMLoggingObj,litellm_params: dict,- extra_body: dict[str, Any] | None = None,+ extra_body: Mapping[str, object] | None = None,- router: "Router | None" = None,) -> tuple[str, dict]:"""RAGFlow vector stores are management-only, search is not supported."""raise NotImplementedError("RAGFlow vector stores support dataset management only, not search/retrieval")diff --cc litellm/llms/xai/responses/transformation.pyindex 36ae15e1df3,acf03d88911..646d6798783--- a/litellm/llms/xai/responses/transformation.py+++ b/litellm/llms/xai/responses/transformation.py@@@ -1,14 -1,25 +1,25 @@@+from collections.abc import Mapping- from typing import Final+ from types import MappingProxyType+ from typing import TYPE_CHECKING, Any, Final++ import httpximport litellmfrom litellm._logging import verbose_loggerfrom litellm.constants import XAI_API_BASEfrom litellm.exceptions import AuthenticationErrorfrom litellm.llms.openai.responses.transformation import OpenAIResponsesAPIConfig- from litellm.llms.xai.common_utils import XAIModelInfo+ from litellm.llms.xai.common_utils import XAIModelInfo, xai_reported_cost_in_usdfrom litellm.secret_managers.main import get_secret_str- from litellm.types.llms.openai import ResponsesAPIOptionalRequestParams+ from litellm.types.llms.openai import (+ ResponseAPIUsage,+ ResponseCompletedEvent,+ ResponseFailedEvent,+ ResponseIncompleteEvent,+ ResponsesAPIOptionalRequestParams,+ ResponsesAPIResponse,+ ResponsesAPIStreamingResponse,+ )-from litellm.types.llms.xai import XAIWebSearchTool, XAIXSearchToolfrom litellm.types.router import GenericLiteLLMParamsfrom litellm.types.utils import LlmProvidersdiff --cc litellm/proxy/guardrails/guardrail_hooks/model_armor/model_armor.pyindex 5d11c3643cd,7d88a037f4f..50b225ddc4c--- a/litellm/proxy/guardrails/guardrail_hooks/model_armor/model_armor.py+++ b/litellm/proxy/guardrails/guardrail_hooks/model_armor/model_armor.py@@@ -32,8 -41,12 +41,13 @@@ from litellm.proxy.guardrails.guardrailplan_file_scans,)from litellm.types.guardrails import GuardrailEventHooks, LitellmParams- from litellm.types.llms.openai import AllMessageValues+ from litellm.types.llms.openai import (+ AllMessageValues,+ ChatCompletionToolCallChunk,+ ResponsesAPIResponse,+ ResponsesAPIStreamEvents,+ )+from litellm.types.llms.vertex_ai import VERTEX_CREDENTIALS_TYPESfrom litellm.types.utils import (CallTypes,CallTypesLiteral,