Skip to content

Switchyard lets LLM applications route traffic across models and providers while preserving native OpenAI and Anthropic API compatibility - enabling flexible model selection, benchmarking, and cost/performance optimization.

Rust

build: inherit prefill-router from the workspace (#710)

nachiketb-nvidia5c34be4fbf7d
diff --git a/Cargo.toml b/Cargo.toml
index c8a3a6449..0013ece6b 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -37,6 +37,7 @@ jsonschema = { version = "0.49.4", default-features = false }
jsonptr = { version = "0.8.1", default-features = false, features = ["std", "json", "resolve"] }
nemo-relay-plugin = ">=0.8.0, <1.0.0"
parking_lot = "0.12"
+prefill-router = { path = "crates/prefill-router", version = "0.2.0" }
rand = "0.10"
regex = "1"
reqwest = { version = "0.13.4", default-features = false, features = ["json", "rustls", "stream"] }
diff --git a/crates/switchyard-runner/Cargo.toml b/crates/switchyard-runner/Cargo.toml
index 6d55d2367..86810c8a2 100644
--- a/crates/switchyard-runner/Cargo.toml
+++ b/crates/switchyard-runner/Cargo.toml
@@ -18,7 +18,7 @@ prefill-router = ["dep:prefill-router"]
[dependencies]
libsy = { package = "switchyard-libsy", path = "../libsy", version = "0.2.0" }
-prefill-router = { path = "../prefill-router", version = "0.2.0", optional = true }
+prefill-router = { workspace = true, optional = true }
reqwest.workspace = true
serde.workspace = true
serde_json.workspace = true