fix(AGC): 默认模型解析复用档位可用校验

- resolve_requested_for 的默认分支原只校验 enabled,补回 access.allows 校验,避免默认模型解析与档位边界不一致
This commit is contained in:
2026-10-03 19:39:52 +08:00
parent ce464168ce
commit 181d72064c
@@ -168,7 +168,7 @@ impl AgcModelCatalog {
.ok_or(AgcModelResolveError::Unavailable)?;
self.models
.iter()
.find(|model| model.id == id && model.enabled)
.find(|model| model.id == id && model.is_available_for(access))
.map(|model| model.model_id.as_str())
.ok_or(AgcModelResolveError::Unavailable)
}