in ml/eval/generate.py [0:0]
def format_prompt(prompt):
"""
Convert a conversation (list of dictionaries) into a string format suitable for the tokenizer.
"""
return "\n".join([f"{entry['role'].capitalize()}: {entry['content']}" for entry in prompt])