Makes Error details optional

- Makes Error details option, as many types don't return the field.
- Removes dangling println statement.
This commit is contained in:
2024-02-29 12:36:20 +00:00
parent c538d915e5
commit f2da435af8
2 changed files with 1 additions and 2 deletions

View File

@@ -191,7 +191,6 @@ impl<T: TokenProvider + Clone> GeminiClient<T> {
.send()
.await?;
let txt_json = resp.text().await?;
println!("{}", txt_json);
Ok(serde_json::from_str::<TextEmbeddingResponse>(&txt_json)?)
}
}