Skip to content

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

refactor(inference): update model context window projection logic

Steven Enamakel1455258f9a34
diff --git a/crates/openhuman-core/src/inference/model_context.rs b/crates/openhuman-core/src/inference/model_context.rs
index b3b05497db..b4509c6e2c 100644
--- a/crates/openhuman-core/src/inference/model_context.rs
+++ b/crates/openhuman-core/src/inference/model_context.rs
@@ -2,8 +2,8 @@
/// Resolves a model-only context window using owner-provided static hints.
///
-/// This projection uses an empty route identity so it cannot borrow provider
-/// discovery from an unrelated endpoint. Returns `None` when no owner or
+/// This projection uses a fresh native resolver, so it cannot borrow remembered
+/// provider discovery from a route. Returns `None` when no owner or
/// managed-provider hint is available.
pub fn context_window_for_model(model: &str) -> Option<u64> {
crate::inference::context_window::project_context_window_for_model(model, None).window