fix(AGC): 默认模型解析复用档位可用校验
- resolve_requested_for 的默认分支原只校验 enabled,补回 access.allows 校验,避免默认模型解析与档位边界不一致
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user