Skip to content

Commit

Permalink
Improved example [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Jun 29, 2024
1 parent 450fc99 commit 399782e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/openai/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ fn fetch_embeddings(input: &[&str]) -> Result<Vec<Vec<f32>>, Box<dyn Error>> {
.set("Authorization", &format!("Bearer {}", api_key))
.send_json(ureq::json!({
"input": input,
"model": "text-embedding-ada-002",
"model": "text-embedding-3-small",
}))?
.into_json()?;

Expand Down

0 comments on commit 399782e

Please sign in to comment.