@runnerpro/backend 1.13.39 → 1.13.40
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.
|
@@ -222,7 +222,7 @@ const sendMessage = (req, res, { sendNotification, firebaseMessaging, isClient }
|
|
|
222
222
|
if (!isClient) {
|
|
223
223
|
[text] = yield Promise.all([
|
|
224
224
|
// Cambiar el tono del texto a uno neutro y corregir la ortografía
|
|
225
|
-
cambiarTonoEntrenadorNeutro(text
|
|
225
|
+
cambiarTonoEntrenadorNeutro(text),
|
|
226
226
|
// Si es entrenador, se marca leído cuando se envía un mensaje
|
|
227
227
|
getPreferredLanguageForChat({ text, idCliente, isClient }),
|
|
228
228
|
]);
|
|
@@ -404,9 +404,7 @@ const markReadMessage = ({ isClient, idCliente }) => __awaiter(void 0, void 0, v
|
|
|
404
404
|
if (!isClient)
|
|
405
405
|
yield (0, saveResponseTime_1.saveResponseTime)(idCliente);
|
|
406
406
|
});
|
|
407
|
-
const cambiarTonoEntrenadorNeutro = (text
|
|
408
|
-
if (idCliente !== 'sJzhGqaJcddq96x80hZAlPJ6pET2')
|
|
409
|
-
return text;
|
|
407
|
+
const cambiarTonoEntrenadorNeutro = (text) => __awaiter(void 0, void 0, void 0, function* () {
|
|
410
408
|
try {
|
|
411
409
|
const textCorregido = yield (0, prompt_1.sendPrompt)(`
|
|
412
410
|
Actúa como un sistema automático de corrección y estandarización de texto para una aplicación de fitness. Tu única función es procesar un mensaje y devolver una única versión mejorada.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation.d.ts","sourceRoot":"","sources":["../../../../../src/chat/api/conversation.ts"],"names":[],"mappings":"AAkBA,QAAA,MAAM,iBAAiB,0BAA2B,GAAG,SAuBpD,CAAC;
|
|
1
|
+
{"version":3,"file":"conversation.d.ts","sourceRoot":"","sources":["../../../../../src/chat/api/conversation.ts"],"names":[],"mappings":"AAkBA,QAAA,MAAM,iBAAiB,0BAA2B,GAAG,SAuBpD,CAAC;AAgcF,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
|