From 12487e6ee52eb5434468fa7385ae15769a88535c Mon Sep 17 00:00:00 2001 From: Cycle Five Date: Sun, 17 Nov 2024 12:40:31 -0500 Subject: [PATCH] cargo update and use patched backoff --- Cargo.toml | 3 +++ async-openai/Cargo.toml | 18 +++++++++--------- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 75ee4f59..11a1aece 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,3 +3,6 @@ members = [ "async-openai", "examples/*" ] # Only check / build main crates by default (check all with `--workspace`) default-members = ["async-openai"] resolver = "2" + +[patch.crates-io] +backoff = { git = "https://github.com/CycleFive/backoff", branch = "v0.4.1-alpha.1" } \ No newline at end of file diff --git a/async-openai/Cargo.toml b/async-openai/Cargo.toml index 5c4cb94d..0af86728 100644 --- a/async-openai/Cargo.toml +++ b/async-openai/Cargo.toml @@ -25,26 +25,26 @@ native-tls-vendored = ["reqwest/native-tls-vendored"] realtime = ["dep:tokio-tungstenite"] [dependencies] -backoff = { version = "0.4.0", features = ["tokio"] } +backoff = { version = "0.4.1-alpha.1", features = ["tokio"] } base64 = "0.22.1" -futures = "0.3.30" +futures = "0.3.31" rand = "0.8.5" -reqwest = { version = "0.12.4", features = [ +reqwest = { version = "0.12.9", features = [ "json", "stream", "multipart", ], default-features = false } reqwest-eventsource = "0.6.0" -serde = { version = "1.0.203", features = ["derive", "rc"] } -serde_json = "1.0.117" -thiserror = "1.0.61" -tokio = { version = "1.38.0", features = ["fs", "macros"] } +serde = { version = "1.0.215", features = ["derive", "rc"] } +serde_json = "1.0.133" +thiserror = "2.0.3" +tokio = { version = "1.41.1", features = ["fs", "macros"] } tokio-stream = "0.1.15" tokio-util = { version = "0.7.11", features = ["codec", "io-util"] } tracing = "0.1.40" -derive_builder = "0.20.0" +derive_builder = "0.20.2" async-convert = "1.0.0" -secrecy = { version = "0.8.0", features = ["serde"] } +secrecy = { version = "0.8", features = ["serde"] } bytes = "1.6.0" eventsource-stream = "0.2.3" tokio-tungstenite = { version = "0.24.0", optional = true, default-features = false }