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(rust-bridge): tighten _native stub for OCR input_sources and websocket construction
Yujong Leec8273448400a
diff --git a/litellm/rust_bridge/_native.pyi b/litellm/rust_bridge/_native.pyiindex d01a480a0a8..4c1033aee79 100644--- a/litellm/rust_bridge/_native.pyi+++ b/litellm/rust_bridge/_native.pyi@@ -1,6 +1,6 @@from asyncio import Futurefrom collections.abc import Coroutine, Mapping, Sequence-from typing import final+from typing import Never, finalfrom litellm.llms.base_llm.ocr.transformation import OCRResponsefrom litellm.rust_bridge.ocr import LiteLLMOcrRequest@@ -16,7 +16,7 @@ def ocr(custom_llm_provider: str | None = None,extra_headers: Mapping[str, object] | None = None,optional_params: Mapping[str, object] | None = None,- input_sources: Sequence[object] | None = None,+ input_sources: Mapping[str, str] | None = None,timeout_seconds: float | None = None,) -> dict[str, object]: ...def aocr(@@ -27,7 +27,7 @@ def aocr(custom_llm_provider: str | None = None,extra_headers: Mapping[str, object] | None = None,optional_params: Mapping[str, object] | None = None,- input_sources: Sequence[object] | None = None,+ input_sources: Mapping[str, str] | None = None,timeout_seconds: float | None = None,) -> Future[dict[str, object]]: ...@@ -113,6 +113,7 @@ def achat_completions(@finalclass ResponsesWebSocketConnection:+ def __new__(cls, _uninstantiable: Never, /) -> Never: ...@classmethoddef connect(cls,