Add base code and examples for the Vertex API

- Add base code for the Vertex API with types and a client with helper
  methods for prompting text and conversation.
- Add examples for prompting text and conversation.
This commit is contained in:
2024-02-06 20:50:36 +00:00
parent 995d2537b9
commit 67c6ba878b
10 changed files with 530 additions and 9 deletions

19
Cargo.toml Normal file
View File

@@ -0,0 +1,19 @@
[package]
name = "gemini-rs"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
gcp_auth = "0.10.0"
reqwest = { version = "0.11.9", features = ["json", "gzip"] }
serde = { version = "*", features = ["derive"] }
serde_json = { version = "*"}
tracing = "0.1.40"
[dev-dependencies]
console = "0.15.8"
dialoguer = "0.11.0"
indicatif = "0.17.7"
tokio = { version = "1.35.1", features = ["full"] }