fix:【AI 大模型】写作时,获取聊天模型错误

This commit is contained in:
YunaiV 2025-05-03 16:10:37 +08:00
parent fe2122d3be
commit 282e87b17e
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)