Skip to content

Commit

Permalink
v0.1.11 format json res
Browse files Browse the repository at this point in the history
  • Loading branch information
Mon-ius committed May 15, 2024
1 parent 4fcf279 commit 0566965
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rim-cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rim-cli"
version = "0.1.10"
version = "0.1.11"
edition = "2021"

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion rim/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ impl RimClient {
.json::<serde_json::Value>()
.await?;

let raw = &response["candidates"][0]["content"]["parts"][0]["text"];
let raw = &response["candidates"][0]["content"]["parts"][0]["text"].as_str().unwrap();
Ok(raw.to_string())
}

Expand Down

0 comments on commit 0566965

Please sign in to comment.