@runnerpro/backend 1.13.3 → 1.13.5
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.
|
@@ -402,13 +402,19 @@ const markReadMessage = ({ isClient, idCliente }) => __awaiter(void 0, void 0, v
|
|
|
402
402
|
});
|
|
403
403
|
const cambiarTonoEntrenadorNeutro = (text) => __awaiter(void 0, void 0, void 0, function* () {
|
|
404
404
|
console.log('text', text);
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
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
|
+
}
|
|
412
418
|
});
|
|
413
419
|
const resizeImage = (data, filePath, mimetype) => __awaiter(void 0, void 0, void 0, function* () {
|
|
414
420
|
if (mimetype.includes('webp'))
|
package/lib/cjs/prompt/index.js
CHANGED
|
@@ -14,7 +14,7 @@ const vertexai_1 = require("@google-cloud/vertexai");
|
|
|
14
14
|
const getVertexChat = () => {
|
|
15
15
|
const vertexAI = new vertexai_1.VertexAI({ project: process.env.GCP_PROYECT_ID, location: 'us-central1' });
|
|
16
16
|
const generativeModel = vertexAI.preview.getGenerativeModel({
|
|
17
|
-
model: 'gemini-2.5-flash',
|
|
17
|
+
model: 'gemini-2.5-flash-preview-05-20',
|
|
18
18
|
});
|
|
19
19
|
return generativeModel.startChat({});
|
|
20
20
|
};
|
|
@@ -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;
|
|
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"}
|