mirror of
https://github.com/openai/harmony.git
synced 2025-08-22 16:17:08 -04:00
Fix Rust example in README
This commit is contained in:
parent
f68e3ccebd
commit
57afd6f60b
1 changed files with 1 additions and 1 deletions
|
@ -119,7 +119,7 @@ fn main() -> anyhow::Result<()> {
|
|||
let convo = Conversation::from_messages([
|
||||
Message::from_role_and_content(Role::User, "Hello there!"),
|
||||
]);
|
||||
let tokens = enc.render_conversation_for_completion(&convo, Role::Assistant)?;
|
||||
let tokens = enc.render_conversation_for_completion(&convo, Role::Assistant, None)?;
|
||||
println!("{:?}", tokens);
|
||||
Ok(())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue