Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
erhant committed Nov 4, 2024
1 parent 5e2d0ad commit 0696537
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/memory/files.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ impl Embedder for OpenAIEmbedder {
.input(EmbeddingInput::String(_prompt.to_string()))
.encoding_format(EmbeddingEncodingFormat::Float)
.build()
.map_err(|e| EmbeddingError::BuilderError(e))?;
.map_err(EmbeddingError::BuilderError)?;

let result = client.embeddings().create(parameters).await;

Expand Down

0 comments on commit 0696537

Please sign in to comment.