forked from tjardoo/openai-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
39 lines (35 loc) · 1.26 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
[package]
name = "openai_dive"
version = "0.4.1"
edition = "2021"
license = "MIT"
description = "OpenAI Dive is an unofficial async Rust library that allows you to interact with the OpenAI API."
repository = "https://github.com/tjardoo/openai-client"
documentation = "https://docs.rs/openai_dive"
keywords = ["openai", "async", "ai", "chatgpt"]
[dependencies]
reqwest = { version = "0.11", optional = true, default-features = false, features = [
"json",
"stream",
"multipart",
] }
reqwest-eventsource = { version = "0.5.0", optional = true }
futures = { version = "0.3", optional = true }
tokio = { version = "1", optional = true, features = [] }
tokio-util = { version = "0.7", optional = true, features = ["codec"] }
tokio-stream = { version = "0.1", optional = true }
serde = { version = "1", features = ["derive"] }
serde_json = "1.0"
rand = { version = "0.8", optional = true }
base64 = { version = "0.21", optional = true }
log = { version = "0.4", optional = true }
bytes = "1.5.0"
[features]
default = ["reqwest", "tokio", "tokio-util", "reqwest/default-tls"]
download = ["dep:futures", "dep:rand", "dep:base64"]
stream = ["dep:reqwest-eventsource", "dep:futures", "dep:tokio-stream"]
rustls-tls = ["reqwest/rustls-tls"]
[lib]
doctest = false
[workspace]
resolver = "2"