Skip to content
Snippets Groups Projects
Commit 3dbd5e0b authored by Jannis Vamvas's avatar Jannis Vamvas
Browse files

Update utils.py

parent b47ea24e
No related branches found
No related tags found
No related merge requests found
......@@ -3,11 +3,11 @@ from typing import List
def format_as_chat(message: str, history: List[List[str]]) -> str:
"""
Given a message and a history of previous messages, return a string that formats the conversation as a chat.
Given a message and a history of previous messages, returns a string that formats the conversation as a chat.
Uses the format expected by Meta Llama 3 Instruct.
:param message: A string containing the user's most recent message
:param history: A list of lists of strings, where each sublist is a conversation turn:
:param history: A list of lists of previous messages, where each sublist is a conversation turn:
[[user_message1, assistant_reply1], [user_message2, assistant_reply2], ...]
"""
... # TODO
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment