mirror of
https://github.com/openai/harmony.git
synced 2025-08-23 01:17:09 -04:00
fix: correct syntax in conversation message formatting (#6)
This commit is contained in:
parent
e1285d43fb
commit
111f0e60b3
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue