Skip to content

Commit

Permalink
Cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Dongri Jin committed Nov 21, 2023
1 parent 7ee0dfd commit 2daafb8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/assistant.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
tools.insert("type".to_string(), "code_interpreter".to_string());

let req = AssistantRequest::new(GPT4_1106_PREVIEW.to_string());
let req = req.clone().description("this is a test assistant".to_string());
let req = req
.clone()
.description("this is a test assistant".to_string());
let req = req.clone().instructions("You are a personal math tutor. When asked a question, write and run Python code to answer the question.".to_string());
let req = req.clone().tools(vec![tools]);
println!("{:?}", req);

let result = client.create_assistant(req)?;
println!("{:?}", result.id);

Expand Down

0 comments on commit 2daafb8

Please sign in to comment.