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
chore: merge main into litellm_rust_http_pool_ocr
Yujong Leeb6b5ef00cc4c
diff --cc litellm-rust/Cargo.lockindex ed0fee3411f,5a8a613204f..7f2d2e6b28b--- a/litellm-rust/Cargo.lock+++ b/litellm-rust/Cargo.lock@@@ -2056,10 -2050,8 +2050,10 @@@ dependencies ="futures-util","litellm-auth","litellm-auth-aws",+ "litellm-auth-gcp",- "litellm-callbacks","litellm-core-utils",+ "litellm-host",+ "litellm-http","litellm-llms","litellm-types","mime_guess",@@@ -2151,10 -2143,9 +2155,10 @@@ dependencies ="litellm-auth-aws","litellm-auth-azure","litellm-auth-gcp",- "litellm-callbacks","litellm-core-utils","litellm-framing",+ "litellm-host",+ "litellm-http","litellm-types","reqwest 0.12.28","rstest",diff --cc litellm-rust/crates/core/src/ocr/client.rsindex a380037487e,c05622932b1..f0b24623a88--- a/litellm-rust/crates/core/src/ocr/client.rs+++ b/litellm-rust/crates/core/src/ocr/client.rs@@@ -14,14 -12,9 +14,14 @@@ pub async fn performclient: &OcrClient,request: LiteLLMOcrRequest,) -> Result<LiteLLMOcrResponse, Error> {- litellm_callbacks::run::run(ocr_machine(client.clone()), &LocalOcrHost::new(request)).await+ litellm_host::run::run(ocr_machine(client.clone()), &LocalOcrHost::new(request)).await}-pub async fn ocr(request: LiteLLMOcrRequest) -> Result<LiteLLMOcrResponse, Error> {- perform(&OcrClient::shared()?, request).await+pub async fn ocr(+ pool: &HttpClientPool,+ config: &HttpClientConfig,+ vertex_auth: VertexAuth,+ request: LiteLLMOcrRequest,+) -> Result<LiteLLMOcrResponse, Error> {+ perform(&OcrClient::new(pool, config, vertex_auth)?, request).await}diff --cc litellm-rust/crates/core/tests/ocr.rsindex 4ce6d4ee8f6,41a650945bc..2e414c58541--- a/litellm-rust/crates/core/tests/ocr.rs+++ b/litellm-rust/crates/core/tests/ocr.rs@@@ -1,8 -1,7 +1,8 @@@use std::sync::{Arc, Mutex};+use litellm_auth_gcp::VertexAuth;- use litellm_callbacks::{- event::{CallEvent, WireRequest},+ use litellm_host::{+ event::{CallEvent, MachineEvent, WireRequest},host::{Host, HostOp, HostResult},machine::{HostFailure, Machine, MachineStep},};diff --cc litellm-rust/crates/llms/Cargo.tomlindex ca76aaf380e,d295e4407ba..a81a4427b4d--- a/litellm-rust/crates/llms/Cargo.toml+++ b/litellm-rust/crates/llms/Cargo.toml@@@ -15,9 -15,8 +15,9 @@@ litellm-auth.workspace = trulitellm-auth-aws.workspace = truelitellm-auth-azure.workspace = truelitellm-auth-gcp.workspace = true- litellm-callbacks.workspace = true+ litellm-host.workspace = truelitellm-framing.workspace = true+litellm-http.workspace = truebase64.workspace = truebytes.workspace = truedata-url = "0.3.2"diff --cc litellm-rust/crates/llms/src/custom_httpx/llm_http_handler.rsindex 9826d73a061,fdd568d83fd..425b71efc78--- a/litellm-rust/crates/llms/src/custom_httpx/llm_http_handler.rs+++ b/litellm-rust/crates/llms/src/custom_httpx/llm_http_handler.rs@@@ -1,10 -1,11 +1,10 @@@use bytes::{Bytes, BytesMut};use futures_util::future::BoxFuture;use litellm_auth_gcp::VertexAuth;- use litellm_callbacks::event::{Passthrough, WireRequest};+ use litellm_host::event::WireRequest;+use litellm_http::{ClientVariant, HttpClientConfig, HttpClientPool};use serde::{Serialize, de::DeserializeOwned};- use serde_json::{Map, Value};+ use serde_json::Value;use crate::{base_llm::ocr::{