@runnerpro/backend 1.13.2 → 1.13.4

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.
@@ -401,13 +401,20 @@ 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
- const textCorregido = yield (0, prompt_1.sendPrompt)(`
405
- Eres un asistente de IA que cambia el tono de los mensajes de un entrenador a uno neutro y corrige la ortografía.
406
- El mensaje es: ${text}
407
- El mensaje corregido es:
408
- `);
409
- console.log('textCorregido', textCorregido);
410
- return textCorregido;
404
+ console.log('text', text);
405
+ try {
406
+ const textCorregido = yield (0, prompt_1.sendPrompt)(`
407
+ Eres un asistente de IA que cambia el tono de los mensajes de un entrenador a uno neutro y corrige la ortografía.
408
+ El mensaje es: ${text}
409
+ El mensaje corregido es:
410
+ `);
411
+ console.log('textCorregido', textCorregido);
412
+ return textCorregido;
413
+ }
414
+ catch (error) {
415
+ console.log('error', error);
416
+ return text;
417
+ }
411
418
  });
412
419
  const resizeImage = (data, filePath, mimetype) => __awaiter(void 0, void 0, void 0, function* () {
413
420
  if (mimetype.includes('webp'))
@@ -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;AAsaF,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;AA4aF,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runnerpro/backend",
3
- "version": "1.13.2",
3
+ "version": "1.13.4",
4
4
  "description": "A collection of common backend functions",
5
5
  "exports": {
6
6
  ".": "./lib/cjs/index.js"