pub struct InferenceGatewayClient { /* private fields */ }Implementations§
Source§impl InferenceGatewayClient
impl InferenceGatewayClient
pub fn new(base_url: &str) -> Self
pub fn list_models(&self) -> Result<Vec<ProviderModels>, Box<dyn Error>>
pub fn generate_content( &self, provider: Provider, model: &str, messages: Vec<Message>, ) -> Result<GenerateResponse, Box<dyn Error>>
pub fn health_check(&self) -> Result<bool, Box<dyn Error>>
Auto Trait Implementations§
impl Freeze for InferenceGatewayClient
impl !RefUnwindSafe for InferenceGatewayClient
impl Send for InferenceGatewayClient
impl Sync for InferenceGatewayClient
impl Unpin for InferenceGatewayClient
impl !UnwindSafe for InferenceGatewayClient
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