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:
@@ -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)?)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user