mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-28 00:00:38 +00:00
Move the shared test helpers out of litellm-inference's test-support feature into a publish = false litellm-inference-testing crate used only as a dev dependency by the format crates. Also drop the dead src/constants.rs (OPENAI_DEFAULT_API_BASE had no users) and declare the litellm-http/litellm-llms test-support features on the crates that actually use them instead of relying on feature unification through litellm-inference's dev-dependencies. Co-authored-by: Yujong Lee <yujong@berri.ai> Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
34 lines
817 B
Rust
34 lines
817 B
Rust
pub mod context;
|
|
pub mod diagnostic;
|
|
|
|
pub mod caching;
|
|
pub mod error;
|
|
pub mod outbound;
|
|
pub mod provider;
|
|
pub mod resources;
|
|
|
|
pub use error::RouteError;
|
|
|
|
#[derive(Clone, Default)]
|
|
pub struct CallOptions {
|
|
pub cache: Option<litellm_cache_response::CachePolicy>,
|
|
pub observers: Option<litellm_host::observation::ObservationSender>,
|
|
}
|
|
|
|
impl From<Option<litellm_host::observation::ObservationSender>> for CallOptions {
|
|
fn from(observers: Option<litellm_host::observation::ObservationSender>) -> Self {
|
|
Self {
|
|
cache: None,
|
|
observers,
|
|
}
|
|
}
|
|
}
|
|
|
|
impl From<litellm_cache_response::CachePolicy> for CallOptions {
|
|
fn from(cache: litellm_cache_response::CachePolicy) -> Self {
|
|
Self {
|
|
cache: Some(cache),
|
|
observers: None,
|
|
}
|
|
}
|
|
}
|