mirror of
https://github.com/mii443/openai-api-rs.git
synced 2025-08-22 23:25:39 +00:00
Cargo fmt
This commit is contained in:
@ -14,7 +14,9 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||||||
tools.insert("type".to_string(), "code_interpreter".to_string());
|
tools.insert("type".to_string(), "code_interpreter".to_string());
|
||||||
|
|
||||||
let req = AssistantRequest::new(GPT4_1106_PREVIEW.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().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]);
|
let req = req.clone().tools(vec![tools]);
|
||||||
println!("{:?}", req);
|
println!("{:?}", req);
|
||||||
|
Reference in New Issue
Block a user