Session infrastructure: OpenRouter + tree-split reducer + observer→LLM Team + scrum_applier #11
@ -13,12 +13,9 @@
|
|||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
use std::sync::OnceLock;
|
use std::sync::OnceLock;
|
||||||
|
|
||||||
/// Rough token count. `chars / 4` ceiling. See module docs for why
|
// `estimate_tokens` moved to `shared::model_matrix::ModelMatrix::estimate_tokens`
|
||||||
/// this heuristic is sufficient.
|
// (cdc24d8). All callers migrated; the deprecated wrapper that stood in its
|
||||||
#[deprecated(note = "Use shared::model_matrix::ModelMatrix::estimate_tokens instead")]
|
// place has been removed since it had zero external consumers.
|
||||||
pub fn estimate_tokens(text: &str) -> usize {
|
|
||||||
(text.chars().count() + 3) / 4
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Phase 21 — per-model context windows, mirroring the TS table in
|
/// Phase 21 — per-model context windows, mirroring the TS table in
|
||||||
/// `tests/multi-agent/agent.ts`. Anchored on each model's documented
|
/// `tests/multi-agent/agent.ts`. Anchored on each model's documented
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user