diff --git a/litellm-rust/crates/callbacks-legacy-python/src/adapter.rs b/litellm-rust/crates/callbacks-legacy-python/src/adapter.rs index 28d5c08736f..e1742190205 100644 --- a/litellm-rust/crates/callbacks-legacy-python/src/adapter.rs +++ b/litellm-rust/crates/callbacks-legacy-python/src/adapter.rs @@ -19,9 +19,9 @@ use serde_json::Value; use crate::{ DeploymentHooks, LegacyCallbacks, PublicCall, PythonLogger, deferred::{PendingLogging, PendingSuccess}, - finalize, is_internal_call, + finalize, is_internal_call, prepare, python::Streaming, - prepare, setup, + setup, }; /// What the legacy contract needs to know about the route it is logging. diff --git a/litellm-rust/crates/callbacks-legacy-python/src/callbacks.rs b/litellm-rust/crates/callbacks-legacy-python/src/callbacks.rs index d36523d6b94..7caa787dd9d 100644 --- a/litellm-rust/crates/callbacks-legacy-python/src/callbacks.rs +++ b/litellm-rust/crates/callbacks-legacy-python/src/callbacks.rs @@ -6,8 +6,8 @@ use litellm_host::event::{RequestContext, WireRequest}; use litellm_host_python::to_py; use pyo3::{exceptions::PyBaseException, prelude::*, types::PyDict}; -use crate::python::{Logging, Wrapper}; use crate::logger::PythonLogger; +use crate::python::{Logging, Wrapper}; pub trait LegacyCallbacks { /// `Logging.update_from_kwargs`: what the logger is told about the request it is diff --git a/litellm-rust/crates/callbacks-legacy-python/src/lib.rs b/litellm-rust/crates/callbacks-legacy-python/src/lib.rs index 514713d988b..44393792d1f 100644 --- a/litellm-rust/crates/callbacks-legacy-python/src/lib.rs +++ b/litellm-rust/crates/callbacks-legacy-python/src/lib.rs @@ -13,9 +13,9 @@ mod adapter; mod call; mod callbacks; mod deferred; -mod python; mod logger; mod preparation; +mod python; #[cfg(test)] #[path = "../tests/support.rs"] mod test_support; diff --git a/litellm-rust/crates/python-bridge/src/routes/messages/mod.rs b/litellm-rust/crates/python-bridge/src/routes/messages/mod.rs index 91591e302b3..b606293f79f 100644 --- a/litellm-rust/crates/python-bridge/src/routes/messages/mod.rs +++ b/litellm-rust/crates/python-bridge/src/routes/messages/mod.rs @@ -1,7 +1,9 @@ mod host; use host::MessagesRouteHost; -use litellm_callbacks_legacy_python::{LegacySurface, PassThroughStream, PublicCall, run_legacy_call}; +use litellm_callbacks_legacy_python::{ + LegacySurface, PassThroughStream, PublicCall, run_legacy_call, +}; use litellm_core::messages::route::{messages_machine, supports}; use pyo3::{ prelude::*,