//! Gemini model listing smoke test.

use rig::client::ModelListingClient;

use super::super::support::with_gemini_cassette;

#[tokio::test]
async fn list_models_smoke() {
    with_gemini_cassette("models/list_models_smoke", |client| async move {
        let models = client
            .list_models()
            .await
            .expect("listing Gemini models should succeed");

        println!("Gemini returned {} models", models.len());

        assert!(
            !models.is_empty(),
            "expected Gemini to return at least one model\nModel list: {models:#?}"
        );
    })
    .await;
}
