mirror of
https://github.com/zongzibinbin/MallChat.git
synced 2026-03-15 15:13:43 +08:00
chatAI-handler
This commit is contained in:
@@ -11,9 +11,13 @@ import javax.validation.constraints.NotNull;
|
||||
|
||||
|
||||
/**
|
||||
* 聊天信息点播
|
||||
* Description: 消息发送请求体
|
||||
* Author: <a href="https://github.com/zongzibinbin">abin</a>
|
||||
* Date: 2023-03-23
|
||||
*
|
||||
* @author zhaoyuhang
|
||||
* @date 2023/06/30
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
|
||||
@@ -38,7 +38,6 @@ import com.abin.mallchat.custom.chat.service.strategy.mark.MsgMarkFactory;
|
||||
import com.abin.mallchat.custom.chat.service.strategy.msg.AbstractMsgHandler;
|
||||
import com.abin.mallchat.custom.chat.service.strategy.msg.MsgHandlerFactory;
|
||||
import com.abin.mallchat.custom.chat.service.strategy.msg.RecallMsgHandler;
|
||||
import com.abin.mallchat.custom.openai.event.OpenAIEvent;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
@@ -96,7 +95,6 @@ public class ChatServiceImpl implements ChatService {
|
||||
msgHandler.saveMsg(insert, request);
|
||||
//发布消息发送事件
|
||||
applicationEventPublisher.publishEvent(new MessageSendEvent(this, insert.getId()));
|
||||
applicationEventPublisher.publishEvent(new OpenAIEvent(this, insert.getId()));
|
||||
return insert.getId();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user