Pre Merge pull request !1287 from Ren/master

This commit is contained in:
Ren 2025-03-15 12:51:11 +00:00 committed by Gitee
commit 10e98b326b
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -246,7 +246,7 @@ public class AiChatMessageServiceImpl implements AiChatMessageService {
} }
// 2.1 查询 tool 工具 // 2.1 查询 tool 工具
Set<String> toolNames = null; Set<String> toolNames = Collections.emptySet();
if (conversation.getRoleId() != null) { if (conversation.getRoleId() != null) {
AiChatRoleDO chatRole = chatRoleService.getChatRole(conversation.getRoleId()); AiChatRoleDO chatRole = chatRoleService.getChatRole(conversation.getRoleId());
if (chatRole != null && CollUtil.isNotEmpty(chatRole.getToolIds())) { if (chatRole != null && CollUtil.isNotEmpty(chatRole.getToolIds())) {