def test_achat_completion(
    test_llm: AzureAICompletionsModel,
    loop: asyncio.AbstractEventLoop,
    test_params: dict,
):
    """Tests the basic chat completion functionality asynchronously."""
    response = loop.run_until_complete(test_llm.achat(**test_params))

    assert response.message.role == MessageRole.ASSISTANT
    assert response.message.content.strip() == "Yes, this is a test."
Tests the basic chat completion functionality asynchronously.
llama-index-integrations/llms/llama-index-llms-azure-inference/tests/test_llms_azure_inference.py