|
@@ -3,8 +3,10 @@ package com.fs.fastGpt.service.impl;
|
|
|
import cn.hutool.json.JSONUtil;
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.fs.common.annotation.Excel;
|
|
|
+import com.fs.common.config.FSConfig;
|
|
|
import com.fs.common.core.domain.R;
|
|
|
import com.fs.common.core.redis.RedisCache;
|
|
|
+import com.fs.config.ai.AiHostProper;
|
|
|
import com.fs.course.domain.FsUserCourseVideo;
|
|
|
import com.fs.course.mapper.FsCourseWatchLogMapper;
|
|
|
import com.fs.course.mapper.FsUserCourseVideoMapper;
|
|
@@ -102,6 +104,8 @@ public class AiNewServiceImpl implements AiNewService {
|
|
|
private FastGptChatReplaceWordsMapper fastGptChatReplaceWordsMapper;
|
|
|
@Autowired
|
|
|
RedisTemplate<String, String> redisTemplate;
|
|
|
+ @Autowired
|
|
|
+ private AiHostProper aiHostProper;
|
|
|
|
|
|
|
|
|
/** Ai半小时未回复提醒 **/
|
|
@@ -623,7 +627,7 @@ public class AiNewServiceImpl implements AiNewService {
|
|
|
String msgC = (String)redisCache.getCacheObject("msg:" + fastGptChatSession.getSessionId());
|
|
|
//添加关键词
|
|
|
addPromptWord(messageList,msgC,qwExternalContactsId,role.getReminderWords(), role.getContactInfo(),fastGptChatSession.getSessionId());
|
|
|
- R r = chatService.initiatingTakeChat(param,"http://154.8.194.176:3000/api",appKey);
|
|
|
+ R r = chatService.initiatingTakeChat(param, aiHostProper.getAiApi(),appKey);
|
|
|
Integer reply2 = (Integer)redisCache.getCacheObject("reply:" + fastGptChatSession.getSessionId());
|
|
|
//次数变动 重新等待5秒
|
|
|
if (reply2!=i){
|