Function is_model_enabled

Source
pub async fn is_model_enabled(model_id: &str) -> Result<bool, OpenRouterError>
Expand description

Checks if a specific model is enabled.

§Arguments

  • model_id - The ID of the model.

§Returns

  • Result<bool, OpenRouterError> - A boolean indicating whether the model is enabled.

§Example

let is_enabled = is_model_enabled("model_id").await?;
println!("Model enabled: {}", is_enabled);