Quellcode durchsuchen

1.新版ai处理用户信息

jzp vor 3 Wochen
Ursprung
Commit
a68efa9cae

+ 3 - 0
fs-service/src/main/java/com/fs/fastgptApi/service/Impl/ChatServiceImpl.java

@@ -45,6 +45,9 @@ public class ChatServiceImpl implements ChatService {
                 if(JSON.parseObject(choices.get(0).toString()).getJSONObject("message").getString("content").contains("【转人工】")){
                     jsonObject.put("artificial", true);
                 }
+                if(JSON.parseObject(choices.get(0).toString()).getJSONObject("message").getString("aiContent").contains("【转人工】")){
+                    jsonObject.put("artificial", true);
+                }
                 if(JSON.parseObject(choices.get(0).toString()).getJSONObject("message").getString("content").contains("FunctionCallBegin")){
                     jsonObject.put("artificial", true);
                 }