@runnerpro/backend 1.13.1 → 1.13.3

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.
@@ -224,7 +224,7 @@ const sendMessage = (req, res, { sendNotification, firebaseMessaging, isClient }
224
224
  // Si es entrenador, se marca leído cuando se envía un mensaje
225
225
  yield markReadMessage({ isClient, idCliente });
226
226
  // Cambiar el tono del texto a uno neutro y corregir la ortografía
227
- text = cambiarTonoEntrenadorNeutro(text);
227
+ text = yield cambiarTonoEntrenadorNeutro(text);
228
228
  }
229
229
  // Devuelve el texto en el otro idioma si el cliente no habla español y el idioma del cliente
230
230
  const { textSpanish, textPreferredLanguage, preferredLanguage } = yield getPreferredLanguageForChat({
@@ -401,11 +401,13 @@ const markReadMessage = ({ isClient, idCliente }) => __awaiter(void 0, void 0, v
401
401
  yield (0, saveResponseTime_1.saveResponseTime)(idCliente);
402
402
  });
403
403
  const cambiarTonoEntrenadorNeutro = (text) => __awaiter(void 0, void 0, void 0, function* () {
404
+ console.log('text', text);
404
405
  const textCorregido = yield (0, prompt_1.sendPrompt)(`
405
406
  Eres un asistente de IA que cambia el tono de los mensajes de un entrenador a uno neutro y corrige la ortografía.
406
407
  El mensaje es: ${text}
407
408
  El mensaje corregido es:
408
409
  `);
410
+ console.log('textCorregido', textCorregido);
409
411
  return textCorregido;
410
412
  });
411
413
  const resizeImage = (data, filePath, mimetype) => __awaiter(void 0, void 0, void 0, function* () {
@@ -1 +1 @@
1
- {"version":3,"file":"conversation.d.ts","sourceRoot":"","sources":["../../../../../src/chat/api/conversation.ts"],"names":[],"mappings":"AAmBA,QAAA,MAAM,iBAAiB,0BAA2B,GAAG,SAuBpD,CAAC;AAqaF,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
1
+ {"version":3,"file":"conversation.d.ts","sourceRoot":"","sources":["../../../../../src/chat/api/conversation.ts"],"names":[],"mappings":"AAmBA,QAAA,MAAM,iBAAiB,0BAA2B,GAAG,SAuBpD,CAAC;AAuaF,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runnerpro/backend",
3
- "version": "1.13.1",
3
+ "version": "1.13.3",
4
4
  "description": "A collection of common backend functions",
5
5
  "exports": {
6
6
  ".": "./lib/cjs/index.js"