pub struct InferenceGatewayClient { /* private fields */ }Expand description
Client for interacting with the Inference Gateway API
Implementations§
Trait Implementations§
Source§impl InferenceGatewayAPI for InferenceGatewayClient
impl InferenceGatewayAPI for InferenceGatewayClient
Source§fn list_models(&self) -> Result<Vec<ProviderModels>, Box<dyn Error>>
fn list_models(&self) -> Result<Vec<ProviderModels>, Box<dyn Error>>
Lists available models from all providers
Source§fn get_provider_models(
&self,
provider: Provider,
) -> Result<ProviderModels, Box<dyn Error>>
fn get_provider_models( &self, provider: Provider, ) -> Result<ProviderModels, Box<dyn Error>>
Lists available models from a specific provider
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