mirror of
https://gitcode.com/ageerle/ruoyi-ai.git
synced 2026-09-13 00:14:59 +00:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user