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

docs: fix Rust setup pins and example links (#1265)

Shawn Wang80c3e1cbb2be
diff --git a/crates/protocol/README.md b/crates/protocol/README.md
index aa71eab2c..436c6b66a 100644
--- a/crates/protocol/README.md
+++ b/crates/protocol/README.md
@@ -8,7 +8,7 @@ defines contracts; it does not route, translate, or perform network calls.
```toml
[dependencies]
-switchyard-protocol = { git = "https://github.com/NVIDIA-NeMo/Switchyard.git", tag = "v0.2.0" }
+switchyard-protocol = { git = "https://github.com/NVIDIA-NeMo/Switchyard.git", rev = "ef958a9a8099bb0493b3d42862273e09eced0f52" }
serde_json = "1"
```
diff --git a/docs/getting_started.md b/docs/getting_started.md
index 74d5cf98d..c03b6a595 100644
--- a/docs/getting_started.md
+++ b/docs/getting_started.md
@@ -12,7 +12,7 @@ You need Rust 1.96.1+ with Cargo and a native build toolchain. See [installation
cargo new switchyard-demo
cd switchyard-demo
# Keep libsy and its protocol types on the same API revision.
-cargo add switchyard-libsy switchyard-protocol --git https://github.com/NVIDIA-NeMo/Switchyard.git --rev 5415db205c1f4db7e079731e7bf33a6609c67c8e
+cargo add switchyard-libsy switchyard-protocol --git https://github.com/NVIDIA-NeMo/Switchyard.git --rev ef958a9a8099bb0493b3d42862273e09eced0f52
# futures reads the step stream; Tokio runs the asynchronous routing tasks.
cargo add tokio@1 --features macros,rt
@@ -139,7 +139,7 @@ Add the dependencies:
```bash
# Translation converts neutral protocol types to and from provider JSON.
-cargo add switchyard-translation --git https://github.com/NVIDIA-NeMo/Switchyard.git --rev 5415db205c1f4db7e079731e7bf33a6609c67c8e
+cargo add switchyard-translation --git https://github.com/NVIDIA-NeMo/Switchyard.git --rev ef958a9a8099bb0493b3d42862273e09eced0f52
# reqwest handles HTTPS and JSON; serde_json represents the provider's reply.
cargo add [email protected] --no-default-features --features json,rustls
cargo add serde_json@1
diff --git a/examples/litellm/README.md b/examples/litellm/README.md
index a89da1c68..df0c4dedc 100644
--- a/examples/litellm/README.md
+++ b/examples/litellm/README.md
@@ -360,5 +360,5 @@ production deployment guidance before exposing the service.
- [LiteLLM routing plugins](https://docs.litellm.ai/docs/routing_plugins)
- [Switchyard decision-only API PR #459](https://github.com/NVIDIA-NeMo/Switchyard/pull/459)
- [Switchyard Python binding updates PR #479](https://github.com/NVIDIA-NeMo/Switchyard/pull/479)
-- [Switchyard Stage routing](../../../docs/routing_algorithms/stage_router_routing.md)
-- [Switchyard Random routing](../../../docs/routing_algorithms/random_routing.md)
+- [Switchyard Stage routing](../../docs/routing_algorithms/stage_router_routing.md)
+- [Switchyard Random routing](../../docs/routing_algorithms/random_routing.md)
diff --git a/tests/getting_started/test_getting_started.py b/tests/getting_started/test_getting_started.py
index 3095a48df..31c5718a8 100644
--- a/tests/getting_started/test_getting_started.py
+++ b/tests/getting_started/test_getting_started.py
@@ -26,7 +26,7 @@ def test_getting_started_documents_current_paths() -> None:
for placeholder in ("call_model(", "call_decision(", "handle_outcome("):
assert placeholder not in readme_example
assert "cargo add switchyard-libsy switchyard-protocol --git" in guide
- assert "--rev 5415db205c1f4db7e079731e7bf33a6609c67c8e" in guide
+ assert "--rev ef958a9a8099bb0493b3d42862273e09eced0f52" in guide
assert "call.respond(client.call(request)).await?" in guide
assert "struct OpenRouterClient" in guide
assert '.post("https://openrouter.ai/api/v1/chat/completions")' in guide