fix: correct syntax in conversation message formatting (#6)

This commit is contained in:
Kohei YAMAMOTO / Asha 2025-08-06 02:09:38 +09:00 committed by GitHub
parent e1285d43fb
commit 111f0e60b3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -86,7 +86,7 @@ convo = Conversation.from_messages([
Message.from_role_and_content(
Role.DEVELOPER,
DeveloperContent.new().with_instructions("Talk like a pirate!")
)
),
Message.from_role_and_content(Role.USER, "Arrr, how be you?"),
])
tokens = enc.render_conversation_for_completion(convo, Role.ASSISTANT)