Skip to content

Commit 0ce0d3b

Browse files
committed
cargo fmt
1 parent 51b9491 commit 0ce0d3b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

examples/embedding.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ use std::env;
77
async fn main() -> Result<(), Box<dyn std::error::Error>> {
88
let client = OpenAIClient::new(env::var("OPENAI_API_KEY").unwrap().to_string());
99

10-
let mut req =
11-
EmbeddingRequest::new(TEXT_EMBEDDING_3_SMALL.to_string(), vec!["story time".to_string(), "Once upon a time".to_string()]);
10+
let mut req = EmbeddingRequest::new(
11+
TEXT_EMBEDDING_3_SMALL.to_string(),
12+
vec!["story time".to_string(), "Once upon a time".to_string()],
13+
);
1214
req.dimensions = Some(10);
1315

1416
let result = client.embedding(req).await?;

0 commit comments

Comments
 (0)