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
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
[package]
name = "prefill-router"
version.workspace = true
description = "Learned prefill routing for Switchyard"
authors.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
rust-version.workspace = true
[dependencies]
async-trait.workspace = true
libsy = { package = "switchyard-libsy", path = "../libsy", version = "0.3.0" }
pyo3 = { version = "0.28.3", features = ["auto-initialize"] }
switchyard-protocol.workspace = true
thiserror.workspace = true
tokio.workspace = true
tracing.workspace = true
[build-dependencies]
pyo3-build-config = "0.28.3"