Function list_model_endpoints

Source
pub async fn list_model_endpoints(
    author: &str,
    slug: &str,
) -> Result<EndpointData, OpenRouterError>
Expand description

Returns details about the endpoints for a specific model.

§Arguments

  • author - The author of the model.
  • slug - The slug identifier for the model.

§Returns

  • Result<models::EndpointData, OpenRouterError> - The endpoint data or an error.

§Example

let endpoint_data = list_model_endpoints("author_name", "model_slug").await?;
println!("{:?}", endpoint_data);