Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore(config): reformat long lines in model and test files

Steven Enamakeld86884fde677
diff --git a/crates/openhuman-core/src/config/ops/model.rs b/crates/openhuman-core/src/config/ops/model.rs
index df14fd5da4..9d1b6b051a 100644
--- a/crates/openhuman-core/src/config/ops/model.rs
+++ b/crates/openhuman-core/src/config/ops/model.rs
@@ -225,7 +225,11 @@ fn complete_byok_route(config: &mut Config, explicit: &ExplicitRolePins) {
let mut pinned: Vec<&str> = Vec::new();
for (role, pinned_explicitly, slot) in [
("chat", explicit.chat, &mut config.chat_provider),
- ("reasoning", explicit.reasoning, &mut config.reasoning_provider),
+ (
+ "reasoning",
+ explicit.reasoning,
+ &mut config.reasoning_provider,
+ ),
("agentic", explicit.agentic, &mut config.agentic_provider),
("coding", explicit.coding, &mut config.coding_provider),
] {
diff --git a/crates/openhuman-core/src/config/ops/model_byok_tests.rs b/crates/openhuman-core/src/config/ops/model_byok_tests.rs
index 7ff17d12b3..b54f03aaef 100644
--- a/crates/openhuman-core/src/config/ops/model_byok_tests.rs
+++ b/crates/openhuman-core/src/config/ops/model_byok_tests.rs
@@ -49,7 +49,10 @@ fn registers_a_provider_and_pins_the_agent_turn_roles() {
let expected = format!("{BYOK_INFERENCE_SLUG}:deepseek/deepseek-v4.1-flash");
assert_eq!(config.chat_provider.as_deref(), Some(expected.as_str()));
- assert_eq!(config.reasoning_provider.as_deref(), Some(expected.as_str()));
+ assert_eq!(
+ config.reasoning_provider.as_deref(),
+ Some(expected.as_str())
+ );
assert_eq!(config.agentic_provider.as_deref(), Some(expected.as_str()));
assert_eq!(config.coding_provider.as_deref(), Some(expected.as_str()));
}
@@ -109,7 +112,11 @@ fn an_existing_entry_for_the_same_endpoint_is_reused_not_duplicated() {
#[test]
fn a_role_pinned_by_the_same_patch_is_not_overwritten() {
- let mut config = config_with(Some("https://openrouter.ai/api/v1"), Some("sk-test"), Some("m"));
+ let mut config = config_with(
+ Some("https://openrouter.ai/api/v1"),
+ Some("sk-test"),
+ Some("m"),
+ );
config.chat_provider = Some("ollama:qwen2.5".to_string());
let explicit = ExplicitRolePins {
chat: true,
@@ -131,12 +138,19 @@ fn a_role_already_pointing_somewhere_deliberate_is_not_repointed() {
// Not named by this patch, but not "unspoken for" either — a previously
// configured local runtime must not be silently moved onto the BYOK
// endpoint.
- let mut config = config_with(Some("https://openrouter.ai/api/v1"), Some("sk-test"), Some("m"));
+ let mut config = config_with(
+ Some("https://openrouter.ai/api/v1"),
+ Some("sk-test"),
+ Some("m"),
+ );
config.coding_provider = Some("ollama:qwen2.5-coder".to_string());
complete_byok_route(&mut config, &ExplicitRolePins::default());
- assert_eq!(config.coding_provider.as_deref(), Some("ollama:qwen2.5-coder"));
+ assert_eq!(
+ config.coding_provider.as_deref(),
+ Some("ollama:qwen2.5-coder")
+ );
assert_eq!(
config.chat_provider.as_deref(),
Some(format!("{BYOK_INFERENCE_SLUG}:m").as_str())
@@ -145,7 +159,11 @@ fn a_role_already_pointing_somewhere_deliberate_is_not_repointed() {
#[test]
fn the_managed_cloud_sentinel_counts_as_unspoken_for() {
- let mut config = config_with(Some("https://openrouter.ai/api/v1"), Some("sk-test"), Some("m"));
+ let mut config = config_with(
+ Some("https://openrouter.ai/api/v1"),
+ Some("sk-test"),
+ Some("m"),
+ );
config.chat_provider = Some("cloud".to_string());
complete_byok_route(&mut config, &ExplicitRolePins::default());