Use the active model context limit for provider compaction
This commit is contained in:
@@ -6935,8 +6935,9 @@ impl BlocklistAIController {
|
||||
}
|
||||
|
||||
let active_context_limit = active_run
|
||||
.response_config
|
||||
.max_context_tokens
|
||||
.coordinator
|
||||
.current_context_limit()
|
||||
.or(active_run.response_config.max_context_tokens)
|
||||
.unwrap_or_else(|| {
|
||||
let preferences = LLMPreferences::as_ref(ctx);
|
||||
configured_llm_context_limit(
|
||||
|
||||
Reference in New Issue
Block a user