!1333 fix: ai-writer 获取聊天模型错误

Merge pull request !1333 from dhb52/N/A
This commit is contained in:
芋道源码 2025-05-03 08:10:05 +00:00 committed by Gitee
commit 48e5670f09
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ public class AiWriteServiceImpl implements AiWriteService {
? writeRole.getSystemMessage() : AiChatRoleEnum.AI_WRITE_ROLE.getSystemMessage();
// 1.3 校验平台
AiPlatformEnum platform = AiPlatformEnum.validatePlatform(model.getPlatform());
StreamingChatModel chatModel = modalService.getChatModel(model.getKeyId());
StreamingChatModel chatModel = modalService.getChatModel(model.getId());
// 2. 插入写作信息
AiWriteDO writeDO = BeanUtils.toBean(generateReqVO, AiWriteDO.class, write -> write.setUserId(userId)