Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
open_router: Fix tool_choice getting serialized to null (#34532)
Umesh Yadav8ee5bf2c3852
diff --git a/crates/open_router/src/open_router.rs b/crates/open_router/src/open_router.rsindex 4128426a7fb..3e6e406d984 100644--- a/crates/open_router/src/open_router.rs+++ b/crates/open_router/src/open_router.rs@@ -153,11 +153,12 @@ pub struct RequestUsage {}#[derive(Debug, Serialize, Deserialize)]-#[serde(untagged)]+#[serde(rename_all = "lowercase")]pub enum ToolChoice {Auto,Required,None,+ #[serde(untagged)]Other(ToolDefinition),}