Skip to content

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

refactor(inference): extract turn model resolution into its own module

Steven Enamakelb628f9d689ce
diff --git a/crates/openhuman-core/src/inference/provider/factory/turn_model.rs b/crates/openhuman-core/src/inference/provider/factory/turn_model.rs
index e771867a8c..6c8f3df1be 100644
--- a/crates/openhuman-core/src/inference/provider/factory/turn_model.rs
+++ b/crates/openhuman-core/src/inference/provider/factory/turn_model.rs
@@ -46,6 +46,7 @@ pub(crate) fn create_turn_chat_model_with_native_tools(
model,
temperature,
native_tool_calling,
+ &EgressLedger::none(),
)
.map(|(chat, _, _)| chat)
}
@@ -218,6 +219,7 @@ pub(crate) fn create_turn_chat_model_from_string_with_native_tools(
model,
temperature,
native_tool_calling,
+ &EgressLedger::none(),
)
.map(|(chat, _, _)| chat)
}
@@ -283,5 +285,6 @@ pub(crate) fn create_turn_chat_model_from_string_with_native_tools_and_route(
model,
temperature,
native_tool_calling,
+ egress,
)
}