-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
54 lines (51 loc) · 1.5 KB
/
Copy pathCargo.toml
File metadata and controls
54 lines (51 loc) · 1.5 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
[package]
name = "openai-api-dispatch"
version = "0.1.1"
authors = ["Victor Lopez <vhrlopes@gmail.com>"]
description = "OpenAI-compatible chat requests through memory or NATS queues."
edition = "2024"
license = "MIT OR Apache-2.0"
repository = "https://github.com/codx-dev/openai-api-dispatch"
categories = [
"api-bindings",
"artificial-intelligence",
"asynchronous",
"no-std",
"web-programming",
]
keywords = ["openai", "ai", "llm"]
[dependencies]
anyhow = { version = "1.0.104", default-features = false }
async-nats = { version = "0.50.0", optional = true }
async-openai = { version = "0.42.0", optional = true, features = [
"chat-completion",
] }
serde = { version = "1.0.229", default-features = false, features = [
"alloc",
"derive",
] }
serde_json = { version = "1.0.151", default-features = false, features = [
"alloc",
] }
spin = { version = "0.12.3", optional = true }
tokio = { version = "1.53.1", optional = true, features = ["sync"] }
tokio-stream = { version = "0.1.19", optional = true }
tracing = { version = "0.1.44", default-features = false }
uuid = { version = "1.25.0", default-features = false, features = ["serde"] }
[dev-dependencies]
tokio = { version = "1.53.1", features = ["full"] }
[features]
default = ["memory-queue", "nats-queue", "std"]
memory-queue = ["spin"]
nats-queue = ["async-nats", "std", "tokio-stream"]
std = [
"anyhow/default",
"async-openai",
"serde/default",
"serde_json/default",
"spin?/std",
"tokio",
"tracing/default",
"uuid/default",
"uuid/v7",
]