better handling of llama-3 tool rolw (#1782)
This commit is contained in:
@@ -352,6 +352,9 @@ class ShareGPTPrompter(Prompter): # pylint: disable=too-few-public-methods
|
|||||||
"Please help us by creating an Issue to add support for this conversation type."
|
"Please help us by creating an Issue to add support for this conversation type."
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if self._conversation.name in ["llama3"]:
|
||||||
|
role = from_role
|
||||||
|
else:
|
||||||
role = CONVERSATION_ROLE_FORMAT[self._conversation.name].format(
|
role = CONVERSATION_ROLE_FORMAT[self._conversation.name].format(
|
||||||
ROLE=from_role
|
ROLE=from_role
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user