mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-29 01:03:17 +00:00
Co-authored-by: Yujong Lee <yujong@berri.ai> Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
37 lines
891 B
Rust
37 lines
891 B
Rust
pub mod context;
|
|
pub mod diagnostic;
|
|
|
|
pub mod caching;
|
|
pub mod constants;
|
|
pub mod error;
|
|
pub mod outbound;
|
|
pub mod provider;
|
|
pub mod resources;
|
|
#[cfg(feature = "test-support")]
|
|
pub mod test_support;
|
|
|
|
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,
|
|
}
|
|
}
|
|
}
|