feat: add selectable routing groups and composite billing

Support per-model provider enablement and compact model editing. Capture request-time billing factors, charge customer costs separately, and preserve historical statistics without backfills.
This commit is contained in:
elky
2026-10-07 14:49:57 +08:00
parent 310098a853
commit 911c7f8875
110 changed files with 6524 additions and 559 deletions
@@ -109,7 +109,10 @@ mod tests {
assert_eq!(profile.originator, "codex_cli_rs");
assert!(profile.user_agent.starts_with("codex_cli_rs/0.200.1 ("));
assert!(profile.user_agent.ends_with(") unknown"));
assert!(profile.user_agent.contains(std::env::consts::ARCH));
let architecture = super::OS_INFO
.architecture()
.unwrap_or(std::env::consts::ARCH);
assert!(profile.user_agent.contains(&format!("; {architecture})")));
}
#[test]