【调整】message 修改引入的modal改为model

This commit is contained in:
cherishsince 2024-05-07 15:39:13 +08:00
parent fd6ce5a627
commit 9ad977bdb9
2 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@ package cn.iocoder.yudao.module.ai.dal.dataobject.chat;
import cn.iocoder.yudao.framework.ai.chat.messages.MessageType;
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
import cn.iocoder.yudao.module.ai.dal.dataobject.model.AiChatModalDO;
import cn.iocoder.yudao.module.ai.dal.dataobject.model.AiChatModelDO;
import cn.iocoder.yudao.module.ai.dal.dataobject.model.AiChatRoleDO;
import cn.iocoder.yudao.module.ai.enums.AiModelEnum;
import com.baomidou.mybatisplus.annotation.KeySequence;
@ -70,7 +70,7 @@ public class AiChatMessageDO extends BaseDO {
/**
* 模型编号
*
* 关联 {@link AiChatModalDO#getId()} 字段
* 关联 {@link AiChatModelDO#getId()} 字段
*/
private Long modelId;

View File

@ -21,7 +21,7 @@ import cn.iocoder.yudao.module.ai.dal.mysql.AiChatConversationMapper;
import cn.iocoder.yudao.module.ai.dal.mysql.AiChatMessageMapper;
import cn.iocoder.yudao.module.ai.dal.mysql.AiChatRoleMapper;
import cn.iocoder.yudao.module.ai.service.AiChatConversationService;
import cn.iocoder.yudao.module.ai.service.AiChatModalService;
import cn.iocoder.yudao.module.ai.service.AiChatModelService;
import cn.iocoder.yudao.module.ai.service.AiChatRoleService;
import cn.iocoder.yudao.module.ai.service.AiChatService;
import lombok.AllArgsConstructor;
@ -52,7 +52,7 @@ public class AiChatServiceImpl implements AiChatService {
private final AiChatMessageMapper aiChatMessageMapper;
private final AiChatConversationMapper aiChatConversationMapper;
private final AiChatConversationService chatConversationService;
private final AiChatModalService aiChatModalService;
private final AiChatModelService aiChatModalService;
private final AiChatRoleService aiChatRoleService;
@Transactional(rollbackFor = Exception.class)