zhoufan месяцев назад: 8
Родитель
Сommit
6e1962695f

+ 1 - 1
midware-api/src/main/resources/application-dev.yml

@@ -38,7 +38,7 @@ common:
38 38
     #modelscope/ekho
39 39
     type: modelscope
40 40
     url: http://192.168.1.81:8000/call
41
-
41
+  rasa: http://192.168.1.20:5005/webhooks/rest/webhook
42 42
 #  ai:
43 43
 #    llm: http://192.168.1.89:7861/chat/chat
44 44
 #    zsk: http://192.168.1.89:7861/chat/kb_chat

+ 2 - 0
midware-api/src/main/resources/application-production.yml

@@ -35,6 +35,8 @@ common:
35 35
     #源号码
36 36
     origination:
37 37
 
38
+  rasa: http://192.168.1.20:5005/webhooks/rest/webhook
39
+
38 40
   funasr: ws://222.213.23.249:10095
39 41
   #funasr/mrcp
40 42
   asr: funasr

+ 2 - 1
midware-service/src/main/java/midware/service/eslclient/EslEventListenerAi.java

@@ -141,7 +141,8 @@ public class EslEventListenerAi implements IEslEventListener {
141 141
 //                }
142 142
                 ps.put("sender", String.valueOf(System.currentTimeMillis()));
143 143
                 ps.put("message", text);
144
-                String result = HttpHelper.post("http://222.213.23.249:5005/webhooks/rest/webhook", JSON.toJSONString(ps));
144
+                String url=SpringHelper.getRequiredProperty("common.rasa");
145
+                String result = HttpHelper.post(url, JSON.toJSONString(ps));
145 146
                 if (StringHelper.isNotEmpty(result)) {
146 147
                     List<Map> maps = JSON.parseArray(result, Map.class);
147 148
                     rt = maps.get(0).get("text").toString();