//! Xiaomi MiMo OpenAI-compatible completion smoke test.

use rig::client::{CompletionClient, ProviderClient};
use rig::completion::Prompt;
use rig::providers::xiaomimimo;

use crate::support::{BASIC_PREAMBLE, BASIC_PROMPT, assert_nonempty_response};

#[tokio::test]
#[ignore = "requires XIAOMI_MIMO_API_KEY"]
async fn openai_compatible_completion_smoke() {
    let response = xiaomimimo::Client::from_env()
        .expect("client should build")
        .agent(xiaomimimo::MIMO_V2_5_PRO)
        .preamble(BASIC_PREAMBLE)
        .build()
        .prompt(BASIC_PROMPT)
        .await
        .expect("Xiaomi MiMo OpenAI-compatible completion should succeed");

    assert_nonempty_response(&response);
}
