@runnerpro/backend 1.17.16 → 1.17.17
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.
|
@@ -592,14 +592,16 @@ const markReadMessage = ({ isClient, idCliente }) => __awaiter(void 0, void 0, v
|
|
|
592
592
|
*/
|
|
593
593
|
const corregirOrtografia = (text) => __awaiter(void 0, void 0, void 0, function* () {
|
|
594
594
|
try {
|
|
595
|
-
|
|
595
|
+
let textCorregido = yield (0, prompt_1.sendPrompt)(`Corrige las faltas de ortografía y adapta el vocabulario a español de España.
|
|
596
596
|
Adaptaciones de vocabulario: celular/teléfono→móvil, computadora/compu→ordenador, ustedes→vosotros, agarrar→coger, fijate→mira.
|
|
597
597
|
NO cambies el significado, el tono ni la estructura de las frases.
|
|
598
598
|
Mantén los emojis y URLs tal cual.
|
|
599
599
|
Devuelve SOLO el texto corregido, sin explicaciones.
|
|
600
600
|
|
|
601
601
|
Texto: ${text}`, 'LITE');
|
|
602
|
-
|
|
602
|
+
textCorregido = textCorregido.replace(/[¡¿]/g, '');
|
|
603
|
+
textCorregido = textCorregido.trim().replace(/\.$/, '');
|
|
604
|
+
return textCorregido;
|
|
603
605
|
}
|
|
604
606
|
catch (error) {
|
|
605
607
|
return text;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation.d.ts","sourceRoot":"","sources":["../../../../../src/chat/api/conversation.ts"],"names":[],"mappings":"AAmBA,QAAA,MAAM,iBAAiB,0BAA2B,GAAG,SA0BpD,CAAC;AA0EF;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,QAAA,MAAM,uBAAuB,qCAAkC,GAAG,iBAwCjE,CAAC;AAmGF;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,QAAA,MAAM,WAAW,0EAAuE,GAAG,kBAkE1F,CAAC;AAEF,QAAA,MAAM,gBAAgB;;;;mBAqBrB,CAAC;
|
|
1
|
+
{"version":3,"file":"conversation.d.ts","sourceRoot":"","sources":["../../../../../src/chat/api/conversation.ts"],"names":[],"mappings":"AAmBA,QAAA,MAAM,iBAAiB,0BAA2B,GAAG,SA0BpD,CAAC;AA0EF;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,QAAA,MAAM,uBAAuB,qCAAkC,GAAG,iBAwCjE,CAAC;AAmGF;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,QAAA,MAAM,WAAW,0EAAuE,GAAG,kBAkE1F,CAAC;AAEF,QAAA,MAAM,gBAAgB;;;;mBAqBrB,CAAC;AAkRF,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,WAAW,EAAE,uBAAuB,EAAE,CAAC"}
|