forked from tyrchen/openai-rust
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
41 lines (35 loc) · 1.12 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
40
41
[package]
name = "openai-rust"
version = "0.5.1"
edition = "2021"
authors = ["LevitatingBusinessMan"]
description = "An unofficial library for the OpenAI API"
repository = "https://github.com/LevitatingBusinessMan/openai-rust"
keywords = ["openai", "gpt", "library", "api", "async"]
documentation = "https://docs.rs/openai-rust"
categories = ["api-bindings"]
readme = "README.md"
license = "MIT"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
default = ["native-tls"]
rustls-tls = ["reqwest/rustls-tls"]
native-tls = ["reqwest/native-tls"]
[[example]]
name = "chat"
path = "examples/chat_example.rs"
doc-scrape-examples = true
[[example]]
name = "chat_stream"
path = "examples/chat_stream_example.rs"
[dependencies]
anyhow = "1.0.70"
bytes = "1.4.0"
futures-util = "0.3.27"
lazy_static = "1.4.0"
reqwest = { default-features = false, features = ["json", "stream"], version = "0.11.14"}
serde = {features = ["derive"], version = "1.0.157"}
serde_json = "1.0.94"
[dev-dependencies]
tokio = { features = ["macros", "rt-multi-thread"], version = "1.26.0"}
tokio-test = "0.4.2"