fix: align pi rust p1 official features

This commit is contained in:
Agent Board
2026-07-11 21:07:32 +08:00
parent d16eccfe10
commit 1418f1b1e0
7 changed files with 382 additions and 41 deletions
@@ -1905,7 +1905,10 @@ pub(crate) fn load_effective_ai_runtime_policy(
.into_iter()
.filter_map(|entry| normalize_model_ref(Some(&default_provider), &entry.id))
.collect::<Vec<_>>();
if !allowed_models.iter().any(|model| model == FREEFIRST_PI_MODEL) {
if !allowed_models
.iter()
.any(|model| model == FREEFIRST_PI_MODEL)
{
allowed_models.push(FREEFIRST_PI_MODEL.to_string());
}
if !allowed_models.iter().any(|model| model == DEFAULT_PI_MODEL) {