fix: 修复 issue IJX5VV/IJPYWL/IHPUDA

- IJX5VV: 补全工作流 9 个节点消息模板 sys_config 配置(SQL 脚本合并重命名时遗失),
  附幂等增量脚本;此前节点执行会抛「请先配置该节点的响应模板」
- IJPYWL: 向量模型未配置维度时,Milvus/Qdrant 回退默认 1024,避免 Integer 拆箱 NPE
- IHPUDA: chat_provider.provider_icon 由 varchar(255) 加宽至 varchar(1000),
  容纳 minio 私有桶签名 URL,附增量脚本

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
ageerle
2026-07-21 15:28:28 +08:00
parent 9a2f326e42
commit 911ae6cb1f
5 changed files with 68 additions and 2 deletions

View File

@@ -79,6 +79,10 @@ public class MilvusVectorStoreStrategy extends AbstractVectorStoreStrategy {
*/
private int getModelDimension(String modelName) {
ChatModelVo modelConfig = chatModelService.selectModelByName(modelName);
if (modelConfig == null || modelConfig.getModelDimension() == null) {
log.warn("无法解析模型 {} 的向量维度,使用默认值 1024", modelName);
return 1024;
}
return modelConfig.getModelDimension();
}

View File

@@ -84,7 +84,12 @@ public class QdrantVectorStoreStrategy extends AbstractVectorStoreStrategy {
}
private int getModelDimension(String modelName) {
return chatModelService.selectModelByName(modelName).getModelDimension();
var modelConfig = chatModelService.selectModelByName(modelName);
if (modelConfig == null || modelConfig.getModelDimension() == null) {
log.warn("无法解析模型 {} 的向量维度,使用默认值 1024", modelName);
return 1024;
}
return modelConfig.getModelDimension();
}
@Override