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

fix(llm-client): filter inbound Anthropic beta headers (#219)

nachiketb-nvidia7a40d51a9615
diff --git a/crates/libsy-llm-client/src/client.rs b/crates/libsy-llm-client/src/client.rs
index 4b3a36ec5..ed8c5b7bc 100644
--- a/crates/libsy-llm-client/src/client.rs
+++ b/crates/libsy-llm-client/src/client.rs
@@ -42,6 +42,7 @@ const RESERVED_HEADERS: &[&str] = &[
"cookie",
"set-cookie",
"x-api-key",
+ "anthropic-beta",
"anthropic-version",
"content-type",
];