fix(research): remove template scope constraints and migrate stored templates
Deploy production / deploy (push) Successful in 55s

This commit is contained in:
yuxuanhui
2026-09-20 10:17:07 +08:00
parent 34f1a4fa77
commit 07dd767c52
7 changed files with 190 additions and 4 deletions
-2
View File
@@ -138,8 +138,6 @@ class Experiments:
asset = await self.assets.get(body.asset_id, body.version, "template") if body.asset_id else None
template = TemplateSpec.model_validate(asset["content"]) if asset else body.template
scope = scope_of(body.settings)
if template.scope and template.scope.model_dump() != scope:
raise HTTPException(422, "模板适用范围与候选设置不同")
snapshots, fields = await self.inputs(body.input_ids, scope)
parents = (
parent_snapshots