Merge Modelfamily into modelinfo (#8763)

- Merge ModelFamily into ModelInfo
- Remove logic for adding instructions to apply patch
- Add compaction limit and visible context window to `ModelInfo`
This commit is contained in:
Ahmed Ibrahim authored and GitHub committed 2026-01-07 10:35:09 -08:00
1 parent a1e81180f8
commit 9179c9deac
28 files changed
+964 -777

No files matched your search

+2 -3
View File
@@ -38,9 +38,8 @@ fn test_auth_manager(config: &Config) -> AuthManager {
}
fn token_info_for(model_slug: &str, config: &Config, usage: &TokenUsage) -> TokenUsageInfo {
let context_window = ModelsManager::construct_model_family_offline(model_slug, config)
.context_window
.or(config.model_context_window);
let context_window =
ModelsManager::construct_model_info_offline(model_slug, config).context_window;
TokenUsageInfo {
total_token_usage: usage.clone(),
last_token_usage: usage.clone(),