def test_bedrock_converse_integration_chat_with_empty_system_prompt(
    bedrock_converse_integration,
):
    """Test chat integration with empty system prompt."""
    llm = bedrock_converse_integration
    messages = [
        ChatMessage(role=MessageRole.SYSTEM, content=""),
        ChatMessage(role=MessageRole.USER, content="What is 2 + 2?"),
    ]

    response = llm.chat(messages)

    assert isinstance(response, ChatResponse)
    assert response.message.role == MessageRole.ASSISTANT
    assert isinstance(response.message.content, str)
    assert len(response.message.content) > 0
    assert "4" in response.message.content
Test chat integration with empty system prompt.
llama-index-integrations/llms/llama-index-llms-bedrock-converse/tests/test_llms_bedrock_converse.py