@runnerpro/backend 1.4.5 → 1.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -173,14 +173,19 @@ const sendMessage = (req, res, { sendNotification, firebaseMessaging, query, isC
|
|
|
173
173
|
body: `Rubén: ${textPreferredLanguage || textSpanish}`,
|
|
174
174
|
url: '/chat',
|
|
175
175
|
});
|
|
176
|
-
// Enviar el mensaje a la IA de vuelta para que aprenda que mensaje
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
176
|
+
// Enviar el mensaje a la IA de vuelta para que aprenda que mensaje ha acabado enviando el entrenador
|
|
177
|
+
try {
|
|
178
|
+
yield axios_1.default.put(`${process.env.BACKEND_IA_URL}/api/chat/suggestion`, { userId: idCliente }, {
|
|
179
|
+
headers: {
|
|
180
|
+
'ngrok-skip-browser-warning': true, // working with ngrok
|
|
181
|
+
'Content-Type': 'application/json',
|
|
182
|
+
Authorization: `Bearer ${process.env.IA_ACCESS_TOKEN}`,
|
|
183
|
+
},
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
catch (error) {
|
|
187
|
+
console.error(error);
|
|
188
|
+
}
|
|
184
189
|
}
|
|
185
190
|
console.log(4);
|
|
186
191
|
res.send({ status: 'ok' });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation.d.ts","sourceRoot":"","sources":["../../../../../src/chat/api/conversation.ts"],"names":[],"mappings":"AAWA,QAAA,MAAM,iBAAiB,0BAA2B,GAAG,SAmBpD,CAAC;
|
|
1
|
+
{"version":3,"file":"conversation.d.ts","sourceRoot":"","sources":["../../../../../src/chat/api/conversation.ts"],"names":[],"mappings":"AAWA,QAAA,MAAM,iBAAiB,0BAA2B,GAAG,SAmBpD,CAAC;AAyTF,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
|