def test_chat_completion(test_llm: AzureAICompletionsModel, test_params: dict):
    """Tests the basic chat completion functionality."""
    response = test_llm.chat(**test_params)

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