pub struct ModelsApi {
pub client: Client,
pub config: ClientConfig,
}
Expand description
API endpoint for model management.
Fields§
§client: Client
§config: ClientConfig
Implementations§
Source§impl ModelsApi
impl ModelsApi
Sourcepub fn new(client: Client, config: &ClientConfig) -> Self
pub fn new(client: Client, config: &ClientConfig) -> Self
Creates a new ModelsApi with the given reqwest client and configuration.
Sourcepub async fn list_models(
&self,
request: Option<ModelsRequest>,
) -> Result<ModelsResponse>
pub async fn list_models( &self, request: Option<ModelsRequest>, ) -> Result<ModelsResponse>
Lists available models, optionally filtered by capability or provider.
Auto Trait Implementations§
impl Freeze for ModelsApi
impl !RefUnwindSafe for ModelsApi
impl Send for ModelsApi
impl Sync for ModelsApi
impl Unpin for ModelsApi
impl !UnwindSafe for ModelsApi
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