def get_chat_request(messages: Sequence[ChatMessage]) -> Dict[str, Any]:
    """Get messages for the Friendli chat request."""
    return {
        "messages": [
            {"role": message.role.value, "content": message.content}
            for message in messages
        ]
    }
Get messages for the Friendli chat request.
llama-index-integrations/llms/llama-index-llms-friendli/llama_index/llms/friendli/utils.py