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>, GatewayError>
fn list_models(&self) -> Result<Vec<ProviderModels>, GatewayError>
Lists available models from all providers
Source§fn list_models_by_provider(
&self,
provider: Provider,
) -> Result<ProviderModels, GatewayError>
fn list_models_by_provider( &self, provider: Provider, ) -> Result<ProviderModels, GatewayError>
Lists available models by a specific provider
Source§fn generate_content(
&self,
provider: Provider,
model: &str,
messages: Vec<Message>,
) -> Result<GenerateResponse, GatewayError>
fn generate_content( &self, provider: Provider, model: &str, messages: Vec<Message>, ) -> Result<GenerateResponse, GatewayError>
Generates content using a specified model Read more
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