Implements result conversation for embedding results

This commit is contained in:
2024-05-14 22:33:12 +01:00
parent e45755ffea
commit e056edc2c4
2 changed files with 26 additions and 7 deletions

View File

@@ -35,7 +35,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
let result = gemini
.text_embeddings(&embedding_request, "textembedding-gecko@003")
.await?;
.await?
.into_result()?;
println!("Response: {:?}", result);
Ok(())