Newer
Older
from typing import List
def format_as_chat(messages: List[str]) -> str:
"""
Given a list of messages, return a string that formats the messages as a chat.
Uses the format expected by Meta Llama 3 Instruct.
The first message is from the user, the second is from the assistant, etc.
"""
... # TODO