Skip to content

Commit 4b69cf2

Browse files
authored
update all crate dependencies (#313)
* updated crate dependencies * updated dependencies of all examples * fix assistants-file-search example
1 parent 9098645 commit 4b69cf2

File tree

31 files changed

+66
-66
lines changed

31 files changed

+66
-66
lines changed

async-openai/Cargo.toml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,27 +27,27 @@ realtime = ["dep:tokio-tungstenite"]
2727
[dependencies]
2828
backoff = { version = "0.4.0", features = ["tokio"] }
2929
base64 = "0.22.1"
30-
futures = "0.3.30"
30+
futures = "0.3.31"
3131
rand = "0.8.5"
32-
reqwest = { version = "0.12.4", features = [
32+
reqwest = { version = "0.12.12", features = [
3333
"json",
3434
"stream",
3535
"multipart",
3636
], default-features = false }
3737
reqwest-eventsource = "0.6.0"
38-
serde = { version = "1.0.203", features = ["derive", "rc"] }
39-
serde_json = "1.0.117"
40-
thiserror = "1.0.61"
41-
tokio = { version = "1.38.0", features = ["fs", "macros"] }
42-
tokio-stream = "0.1.15"
43-
tokio-util = { version = "0.7.11", features = ["codec", "io-util"] }
44-
tracing = "0.1.40"
45-
derive_builder = "0.20.0"
38+
serde = { version = "1.0.217", features = ["derive", "rc"] }
39+
serde_json = "1.0.135"
40+
thiserror = "2.0.11"
41+
tokio = { version = "1.43.0", features = ["fs", "macros"] }
42+
tokio-stream = "0.1.17"
43+
tokio-util = { version = "0.7.13", features = ["codec", "io-util"] }
44+
tracing = "0.1.41"
45+
derive_builder = "0.20.2"
4646
async-convert = "1.0.0"
4747
secrecy = { version = "0.10.3", features = ["serde"] }
48-
bytes = "1.6.0"
48+
bytes = "1.9.0"
4949
eventsource-stream = "0.2.3"
50-
tokio-tungstenite = { version = "0.24.0", optional = true, default-features = false }
50+
tokio-tungstenite = { version = "0.26.1", optional = true, default-features = false }
5151

5252
[dev-dependencies]
5353
tokio-test = "0.4.4"

async-openai/src/types/realtime/client_event.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ pub struct ConversationItemTruncateEvent {
6161
/// The index of the content part to truncate.
6262
pub content_index: u32,
6363

64-
/// Inclusive duration up to which audio is truncated, in milliseconds.
64+
/// Inclusive duration up to which audio is truncated, in milliseconds.
6565
pub audio_end_ms: u32,
6666
}
6767

@@ -141,7 +141,7 @@ impl From<&ClientEvent> for String {
141141

142142
impl From<ClientEvent> for Message {
143143
fn from(value: ClientEvent) -> Self {
144-
Message::Text(String::from(&value))
144+
Message::Text(String::from(&value).into())
145145
}
146146
}
147147

examples/assistants-code-interpreter/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ publish = false
66

77
[dependencies]
88
async-openai = { path = "../../async-openai" }
9-
tokio = { version = "1.38.0", features = ["full"] }
10-
tracing-subscriber = { version = "0.3.18", features = ["env-filter"]}
9+
tokio = { version = "1.43.0", features = ["full"] }
10+
tracing-subscriber = { version = "0.3.19", features = ["env-filter"]}

examples/assistants-file-search/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ publish = false
66

77
[dependencies]
88
async-openai = { path = "../../async-openai" }
9-
tokio = { version = "1.38.0", features = ["full"] }
9+
tokio = { version = "1.43.0", features = ["full"] }

examples/assistants-file-search/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
8383
.files()
8484
.create(CreateFileRequest {
8585
file: "./input/lyft-10k.pdf".into(),
86-
..Default::default()
86+
purpose: FilePurpose::Assistants,
8787
})
8888
.await?;
8989

examples/assistants-func-call-stream/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ edition = "2021"
55

66
[dependencies]
77
async-openai = { path = "../../async-openai" }
8-
tokio = { version = "1.38.0", features = ["full"] }
9-
serde_json = "1.0.117"
10-
futures = "0.3.30"
11-
tracing-subscriber = { version = "0.3.18", features = ["env-filter"] }
8+
tokio = { version = "1.43.0", features = ["full"] }
9+
serde_json = "1.0.135"
10+
futures = "0.3.31"
11+
tracing-subscriber = { version = "0.3.19", features = ["env-filter"] }

examples/assistants/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ publish = false
66

77
[dependencies]
88
async-openai = {path = "../../async-openai"}
9-
tokio = { version = "1.38.0", features = ["full"] }
10-
tracing-subscriber = { version = "0.3.18", features = ["env-filter"]}
9+
tokio = { version = "1.43.0", features = ["full"] }
10+
tracing-subscriber = { version = "0.3.19", features = ["env-filter"]}

examples/audio-speech/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ publish = false
66

77
[dependencies]
88
async-openai = {path = "../../async-openai"}
9-
tokio = { version = "1.38.0", features = ["full"] }
9+
tokio = { version = "1.43.0", features = ["full"] }

examples/audio-transcribe/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ publish = false
66

77
[dependencies]
88
async-openai = {path = "../../async-openai"}
9-
tokio = { version = "1.38.0", features = ["full"] }
9+
tokio = { version = "1.43.0", features = ["full"] }

examples/audio-translate/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ publish = false
66

77
[dependencies]
88
async-openai = {path = "../../async-openai"}
9-
tokio = { version = "1.38.0", features = ["full"] }
9+
tokio = { version = "1.43.0", features = ["full"] }

examples/azure-openai-service/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ publish = false
66

77
[dependencies]
88
async-openai = {path = "../../async-openai"}
9-
tokio = { version = "1.38.0", features = ["full"] }
10-
futures = "0.3.30"
9+
tokio = { version = "1.43.0", features = ["full"] }
10+
futures = "0.3.31"

examples/chat-store/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ publish = false
66

77
[dependencies]
88
async-openai = {path = "../../async-openai"}
9-
serde_json = "1.0.117"
10-
tokio = { version = "1.38.0", features = ["full"] }
9+
serde_json = "1.0.135"
10+
tokio = { version = "1.43.0", features = ["full"] }

examples/chat-stream/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ publish = false
66

77
[dependencies]
88
async-openai = {path = "../../async-openai"}
9-
tokio = { version = "1.38.0", features = ["full"] }
10-
futures = "0.3.30"
9+
tokio = { version = "1.43.0", features = ["full"] }
10+
futures = "0.3.31"

examples/chat/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ publish = false
66

77
[dependencies]
88
async-openai = {path = "../../async-openai"}
9-
serde_json = "1.0.117"
10-
tokio = { version = "1.38.0", features = ["full"] }
9+
serde_json = "1.0.135"
10+
tokio = { version = "1.43.0", features = ["full"] }

examples/completions-stream/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ publish = false
77
[dependencies]
88
async-openai = {path = "../../async-openai"}
99
futures = "0.3.30"
10-
tokio = { version = "1.38.0", features = ["full"] }
10+
tokio = { version = "1.43.0", features = ["full"] }

examples/completions/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ publish = false
66

77
[dependencies]
88
async-openai = {path = "../../async-openai"}
9-
tokio = { version = "1.38.0", features = ["full"] }
9+
tokio = { version = "1.43.0", features = ["full"] }

examples/create-image-b64-json/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ publish = false
66

77
[dependencies]
88
async-openai = {path = "../../async-openai"}
9-
tokio = { version = "1.38.0", features = ["full"] }
9+
tokio = { version = "1.43.0", features = ["full"] }

examples/create-image-edit/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ publish = false
66

77
[dependencies]
88
async-openai = {path = "../../async-openai"}
9-
tokio = { version = "1.38.0", features = ["full"] }
9+
tokio = { version = "1.43.0", features = ["full"] }

examples/create-image-variation/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ publish = false
66

77
[dependencies]
88
async-openai = {path = "../../async-openai"}
9-
tokio = { version = "1.38.0", features = ["full"] }
9+
tokio = { version = "1.43.0", features = ["full"] }

examples/create-image/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ publish = false
66

77
[dependencies]
88
async-openai = {path = "../../async-openai"}
9-
tokio = { version = "1.38.0", features = ["full"] }
9+
tokio = { version = "1.43.0", features = ["full"] }

examples/embeddings/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ publish = false
66

77
[dependencies]
88
async-openai = {path = "../../async-openai"}
9-
tokio = { version = "1.38.0", features = ["full"] }
9+
tokio = { version = "1.43.0", features = ["full"] }

examples/function-call-stream/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ publish = false
88

99
[dependencies]
1010
async-openai = {path = "../../async-openai"}
11-
serde_json = "1.0.117"
12-
tokio = { version = "1.38.0", features = ["full"] }
13-
futures = "0.3.30"
11+
serde_json = "1.0.135"
12+
tokio = { version = "1.43.0", features = ["full"] }
13+
futures = "0.3.31"

examples/function-call/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ publish = false
88

99
[dependencies]
1010
async-openai = {path = "../../async-openai"}
11-
serde_json = "1.0.117"
12-
tokio = { version = "1.38.0", features = ["full"] }
13-
tracing-subscriber = { version = "0.3.18", features = ["env-filter"]}
11+
serde_json = "1.0.135"
12+
tokio = { version = "1.43.0", features = ["full"] }
13+
tracing-subscriber = { version = "0.3.19", features = ["env-filter"]}

examples/in-memory-file/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ publish = false
66

77
[dependencies]
88
async-openai = {path = "../../async-openai"}
9-
tokio = { version = "1.38.0", features = ["full"] }
10-
bytes = "1.6.0"
9+
tokio = { version = "1.43.0", features = ["full"] }
10+
bytes = "1.9.0"

examples/models/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ publish = false
66

77
[dependencies]
88
async-openai = {path = "../../async-openai"}
9-
tokio = { version = "1.38.0", features = ["full"] }
9+
tokio = { version = "1.43.0", features = ["full"] }

examples/moderations/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ publish = false
66

77
[dependencies]
88
async-openai = { path = "../../async-openai" }
9-
tokio = { version = "1.38.0", features = ["full"] }
9+
tokio = { version = "1.43.0", features = ["full"] }

examples/realtime/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ edition = "2021"
77
async-openai = { path = "../../async-openai", features = ["realtime"] }
88
futures-channel = "0.3.31"
99
futures-util = { version = "0.3.31", features = ["sink", "std"] }
10-
serde = { version = "1.0.210", features = ["derive"] }
11-
serde_json = "1.0.128"
12-
tokio = { version = "1.40.0", features = [
10+
serde = { version = "1.0.217", features = ["derive"] }
11+
serde_json = "1.0.135"
12+
tokio = { version = "1.43.0", features = [
1313
"io-std",
1414
"io-util",
1515
"macros",
1616
"rt-multi-thread",
1717
] }
18-
tokio-tungstenite = { version = "0.24.0", features = ["connect", "native-tls"] }
18+
tokio-tungstenite = { version = "0.26.1", features = ["connect", "native-tls"] }

examples/structured-outputs/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ publish = false
66

77
[dependencies]
88
async-openai = {path = "../../async-openai"}
9-
serde_json = "1.0.127"
10-
tokio = { version = "1.39.3", features = ["full"] }
9+
serde_json = "1.0.135"
10+
tokio = { version = "1.43.0", features = ["full"] }

examples/tool-call-stream/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ publish = false
99
[dependencies]
1010
async-openai = {path = "../../async-openai"}
1111
rand = "0.8.5"
12-
serde_json = "1.0.117"
13-
tokio = { version = "1.38.0", features = ["full"] }
14-
futures = "0.3.30"
12+
serde_json = "1.0.135"
13+
tokio = { version = "1.43.0", features = ["full"] }
14+
futures = "0.3.31"

examples/tool-call/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ publish = false
99
[dependencies]
1010
async-openai = {path = "../../async-openai"}
1111
rand = "0.8.5"
12-
serde_json = "1.0.117"
13-
tokio = { version = "1.38.0", features = ["full"] }
14-
futures = "0.3.30"
12+
serde_json = "1.0.135"
13+
tokio = { version = "1.43.0", features = ["full"] }
14+
futures = "0.3.31"

examples/vision-chat/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ edition = "2021"
77

88
[dependencies]
99
async-openai = { path = "../../async-openai" }
10-
serde_json = "1.0.117"
11-
tokio = { version = "1.38.0", features = ["full"] }
10+
serde_json = "1.0.135"
11+
tokio = { version = "1.43.0", features = ["full"] }

0 commit comments

Comments
 (0)