Skip to content

Commit 2daafb8

Browse files
author
Dongri Jin
committed
Cargo fmt
1 parent 7ee0dfd commit 2daafb8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

examples/assistant.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
1414
tools.insert("type".to_string(), "code_interpreter".to_string());
1515

1616
let req = AssistantRequest::new(GPT4_1106_PREVIEW.to_string());
17-
let req = req.clone().description("this is a test assistant".to_string());
17+
let req = req
18+
.clone()
19+
.description("this is a test assistant".to_string());
1820
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());
1921
let req = req.clone().tools(vec![tools]);
2022
println!("{:?}", req);
21-
23+
2224
let result = client.create_assistant(req)?;
2325
println!("{:?}", result.id);
2426

0 commit comments

Comments
 (0)