Skip to content

An agent-managed museum exhibit, built in Rust with Gajae-Code / LazyCodex — developed and maintained with no human intervention.

Rust

fix(api): silence dead_code warning and remove duplicated #[test] attr

YeonGyu-Kim6ae8850d4583
diff --git a/rust/crates/api/src/providers/openai_compat.rs b/rust/crates/api/src/providers/openai_compat.rs
index 00035dbe..1d46ee68 100644
--- a/rust/crates/api/src/providers/openai_compat.rs
+++ b/rust/crates/api/src/providers/openai_compat.rs
@@ -1652,6 +1652,7 @@ mod tests {
}"#;
use super::deserialize_null_as_empty_vec;
+ #[allow(dead_code)]
#[derive(serde::Deserialize, Debug)]
struct Delta {
content: Option<String>,
@@ -1666,7 +1667,6 @@ mod tests {
);
}
- #[test]
/// Regression: when building a multi-turn request where a prior assistant
/// turn has no tool calls, the serialized assistant message must NOT include
/// `tool_calls: []`. Some providers reject requests that carry an empty