mirror of
https://github.com/BerriAI/litellm.git
synced 2026-12-06 02:09:04 +00:00
* refactor(rust): rename litellm-core to litellm-inference Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * refactor(rust): expose inference base API for format crates Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * test(rust): move shared inference test helpers behind test-support Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --------- Co-authored-by: Yujong Lee <yujong@berri.ai> Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
19 lines
380 B
Rust
19 lines
380 B
Rust
use std::sync::Arc;
|
|
|
|
use litellm_auth::AuthServices;
|
|
use litellm_http::HttpClientPool;
|
|
|
|
#[derive(Clone)]
|
|
pub struct CoreResources {
|
|
pub pool: Arc<HttpClientPool>,
|
|
pub auth: Arc<AuthServices>,
|
|
}
|
|
|
|
impl CoreResources {
|
|
pub fn new(pool: Arc<HttpClientPool>) -> Self {
|
|
Self {
|
|
pool,
|
|
auth: Arc::new(AuthServices::default()),
|
|
}
|
|
}
|
|
}
|