Skip to content

Commit

Permalink
Upgrade dependencies: Rust crates in Cargo.toml (#204)
Browse files Browse the repository at this point in the history
* upgrade reqwest

* update reqwest-eventsource
  • Loading branch information
Sagebati authored Mar 31, 2024
1 parent db4c213 commit 6178070
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions async-openai/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,19 @@ native-tls-vendored = ["reqwest/native-tls-vendored"]

[dependencies]
backoff = {version = "0.4.0", features = ["tokio"] }
base64 = "0.21.0"
base64 = "0.22.0"
futures = "0.3.26"
rand = "0.8.5"
reqwest = { version = "0.11.14", features = ["json", "stream", "multipart"],default-features = false }
reqwest-eventsource = "0.4.0"
reqwest = { version = "0.12.0", features = ["json", "stream", "multipart"],default-features = false }
reqwest-eventsource = "0.6.0"
serde = { version = "1.0.152", features = ["derive", "rc"] }
serde_json = "1.0.93"
thiserror = "1.0.38"
tokio = { version = "1.25.0", features = ["fs", "macros"] }
tokio-stream = "0.1.11"
tokio-util = { version = "0.7.7", features = ["codec", "io-util"] }
tracing = "0.1.37"
derive_builder = "0.12.0"
derive_builder = "0.20.0"
async-convert = "1.0.0"
secrecy = { version = "0.8.0", features=["serde"] }
bytes = "1.5.0"
Expand Down
4 changes: 3 additions & 1 deletion examples/vision-chat/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ async fn main() -> Result<(), Box<dyn Error>> {
for choice in response.choices {
println!(
"{}: Role: {} Content: {:?}",
choice.index, choice.message.role, choice.message.content.unwrap_or_default()
choice.index,
choice.message.role,
choice.message.content.unwrap_or_default()
);
}

Expand Down

0 comments on commit 6178070

Please sign in to comment.