pub struct LiteLlmProvider { /* private fields */ }Expand description
LiteLLM proxy provider — OpenAI-compatible, optional Bearer auth. Expects model names prefixed with “litellm:” (e.g. “litellm:gpt-4o”).
Implementations§
Trait Implementations§
Source§impl LlmProvider for LiteLlmProvider
impl LlmProvider for LiteLlmProvider
Source§fn generate<'life0, 'async_trait>(
&'life0 self,
req: LlmRequest,
) -> Pin<Box<dyn Future<Output = Result<LlmResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn generate<'life0, 'async_trait>(
&'life0 self,
req: LlmRequest,
) -> Pin<Box<dyn Future<Output = Result<LlmResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Generate a response (non-streaming)
Source§fn supports_model(&self, model: &str) -> bool
fn supports_model(&self, model: &str) -> bool
Models supported by this provider (prefix matching)
Auto Trait Implementations§
impl Freeze for LiteLlmProvider
impl !RefUnwindSafe for LiteLlmProvider
impl Send for LiteLlmProvider
impl Sync for LiteLlmProvider
impl Unpin for LiteLlmProvider
impl UnsafeUnpin for LiteLlmProvider
impl !UnwindSafe for LiteLlmProvider
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more