fix(experiments): 移除系统预置并支持空白实验配置

- 迁移清理预置类型及关联分流数据,保留自建类型与清理审计
- 未配置实验时沿用应用默认行为,不自动创建类型或接入记录
- 补充空白系统启动回归与迁移说明
This commit is contained in:
湛兮
2026-10-27 14:41:59 +08:00
parent cdae952c6a
commit 9350aa9632
7 changed files with 145 additions and 25 deletions
+1 -1
View File
@@ -209,7 +209,7 @@ export async function streamChat(
throw new HttpError(503, "MODEL_UNAVAILABLE", "模型暂未配置,请联系管理员");
const conversation = await ownConversation(id, account);
const card = await published(conversation.character_id, "character");
const decision = await decide(account, "chat");
const decision = await decide(account, "chat", { value: "" });
const presetId =
decision.presetId ?? conversation.settings.presetId ?? card.body.presetId;
const selectedPreset = decision.presetSnapshot