add dummy backend

This commit is contained in:
OlivierDehaene 2024-06-26 15:39:28 +02:00
parent 230f2a415a
commit 2bcc87bb02
3 changed files with 15 additions and 2 deletions

12
Cargo.lock generated
View File

@ -790,6 +790,18 @@ dependencies = [
"windows-sys 0.48.0",
]
[[package]]
name = "dummy"
version = "2.0.5-dev0"
dependencies = [
"async-trait",
"clap",
"text-generation-router",
"thiserror",
"tokio",
"tokio-stream",
]
[[package]]
name = "either"
version = "1.12.0"

View File

@ -2,10 +2,11 @@
members = [
# "benchmark",
"backends/v3",
"backends/dummy",
# "backends/client",
"backends/grpc-metadata",
"launcher"
]
, "backends/dummy"]
resolver = "2"
[workspace.package]

View File

@ -1052,7 +1052,7 @@ impl From<CompatGenerateRequest> for GenerateRequest {
}
}
#[derive(Debug, Serialize, ToSchema)]
#[derive(Debug, Serialize, ToSchema, Clone)]
pub struct PrefillToken {
#[schema(example = 0)]
pub id: u32,