diff --git a/Cargo.lock b/Cargo.lock index 7b4374a8..9398f304 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -5260,6 +5260,16 @@ version = "0.3.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" +[[package]] +name = "mime_guess" +version = "2.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f7c44f8e672c00fe5308fa235f821cb4198414e1c77935c1ab6948d3fd78550e" +dependencies = [ + "mime", + "unicase", +] + [[package]] name = "minimal-lexical" version = "0.2.1" @@ -6866,6 +6876,7 @@ dependencies = [ "js-sys", "log", "mime", + "mime_guess", "native-tls", "once_cell", "percent-encoding", @@ -6880,6 +6891,7 @@ dependencies = [ "tokio", "tokio-native-tls", "tokio-rustls 0.24.1", + "tokio-socks", "tokio-util", "tower-service", "url", @@ -8981,6 +8993,18 @@ dependencies = [ "tokio", ] +[[package]] +name = "tokio-socks" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0d4770b8024672c1101b3f6733eab95b18007dbe0847a8afe341fcf79e06043f" +dependencies = [ + "either", + "futures-util", + "thiserror 1.0.69", + "tokio", +] + [[package]] name = "tokio-stream" version = "0.1.17" diff --git a/rig-core/Cargo.toml b/rig-core/Cargo.toml index 877c9970..55fe15b4 100644 --- a/rig-core/Cargo.toml +++ b/rig-core/Cargo.toml @@ -15,7 +15,7 @@ doctest = false # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -reqwest = { version = "0.11.22", features = ["json", "stream"] } +reqwest = { version = "0.11.22", features = ["json", "stream", "multipart"] } serde = { version = "1.0.193", features = ["derive"] } serde_json = "1.0.108" tracing = "0.1.40" @@ -46,6 +46,7 @@ derive = ["dep:rig-derive"] pdf = ["dep:lopdf"] rayon = ["dep:rayon"] worker = ["dep:worker"] +socks = ["reqwest/socks"] [[test]] name = "embed_macro"