feat: 支持聊天多版本答案切换

- 为管理端、公共聊天和用户中心补充回答变体查询与切换能力

- 支持基于指定轮次重新生成并同步前后端多版本状态

- 保留 application.yml 与本地截图文件为未提交状态
This commit is contained in:
2026-05-14 21:23:20 +08:00
parent da58077d59
commit 1a6ea64e80
23 changed files with 2625 additions and 122 deletions

View File

@@ -31,9 +31,11 @@ public class TinyFlowService {
ChainState chainState = chainStateRepository.load(executeId);
ChainInfo res = getChainInfo(executeId, chainState);
for (NodeInfo node : nodes) {
processNodeState(executeId, node, chainStateRepository, nodeStateRepository);
res.getNodes().put(node.getNodeId(), node);
if (nodes != null) {
for (NodeInfo node : nodes) {
processNodeState(executeId, node, chainStateRepository, nodeStateRepository);
res.getNodes().put(node.getNodeId(), node);
}
}
return res;
}