2022-10-08 04:30:12 -06:00
|
|
|
[package]
|
2022-10-17 06:59:00 -06:00
|
|
|
name = "text-generation-router"
|
2022-10-17 10:27:33 -06:00
|
|
|
description = "Text Generation Webserver"
|
2023-04-18 08:16:06 -06:00
|
|
|
build = "build.rs"
|
2023-05-09 05:19:31 -06:00
|
|
|
version.workspace = true
|
|
|
|
edition.workspace = true
|
|
|
|
authors.workspace = true
|
|
|
|
homepage.workspace = true
|
2022-10-08 04:30:12 -06:00
|
|
|
|
2022-10-17 06:59:00 -06:00
|
|
|
[lib]
|
|
|
|
path = "src/lib.rs"
|
|
|
|
|
|
|
|
[[bin]]
|
|
|
|
name = "text-generation-router"
|
|
|
|
path = "src/main.rs"
|
|
|
|
|
2022-10-08 04:30:12 -06:00
|
|
|
[dependencies]
|
2023-09-27 02:40:18 -06:00
|
|
|
async-stream = "0.3.5"
|
|
|
|
axum = { version = "0.6.20", features = ["json"] }
|
|
|
|
axum-tracing-opentelemetry = "0.14.1"
|
2022-10-28 11:24:00 -06:00
|
|
|
text-generation-client = { path = "client" }
|
2023-09-27 02:40:18 -06:00
|
|
|
clap = { version = "4.4.5", features = ["derive", "env"] }
|
|
|
|
flume = "0.11.0"
|
|
|
|
futures = "0.3.28"
|
|
|
|
metrics = "0.21.1"
|
2023-07-01 11:25:41 -06:00
|
|
|
metrics-exporter-prometheus = { version = "0.12.1", features = [] }
|
2023-01-26 08:29:13 -07:00
|
|
|
nohash-hasher = "0.2.0"
|
2023-09-27 02:40:18 -06:00
|
|
|
opentelemetry = { version = "0.20.0", features = ["rt-tokio"] }
|
|
|
|
opentelemetry-otlp = "0.13.0"
|
2023-01-31 08:01:15 -07:00
|
|
|
rand = "0.8.5"
|
2023-09-27 02:40:18 -06:00
|
|
|
reqwest = { version = "0.11.20", features = [] }
|
|
|
|
serde = "1.0.188"
|
|
|
|
serde_json = "1.0.107"
|
|
|
|
thiserror = "1.0.48"
|
|
|
|
tokenizers = { version = "0.14.0", features = ["http"] }
|
|
|
|
tokio = { version = "1.32.0", features = ["rt", "rt-multi-thread", "parking_lot", "signal", "sync"] }
|
|
|
|
tower-http = { version = "0.4.4", features = ["cors"] }
|
2023-02-13 05:02:45 -07:00
|
|
|
tracing = "0.1.37"
|
2023-09-27 02:40:18 -06:00
|
|
|
tracing-opentelemetry = "0.21.0"
|
|
|
|
tracing-subscriber = { version = "0.3.17", features = ["json", "env-filter"] }
|
|
|
|
utoipa = { version = "3.5.0", features = ["axum_extras"] }
|
|
|
|
utoipa-swagger-ui = { version = "3.1.5", features = ["axum"] }
|
|
|
|
ngrok = { version = "0.13.1", features = ["axum"], optional = true }
|
|
|
|
hf-hub = "0.3.1"
|
|
|
|
init-tracing-opentelemetry = { version = "0.14.1", features = ["opentelemetry-otlp"] }
|
2022-10-08 04:30:12 -06:00
|
|
|
|
2023-04-18 08:16:06 -06:00
|
|
|
[build-dependencies]
|
2023-09-27 02:40:18 -06:00
|
|
|
vergen = { version = "8.2.5", features = ["build", "git", "gitcl"] }
|
2023-06-16 08:25:11 -06:00
|
|
|
|
|
|
|
[features]
|
|
|
|
default = ["ngrok"]
|
2023-09-27 02:40:18 -06:00
|
|
|
ngrok = ["dep:ngrok"]
|