@runnerpro/backend 1.13.17 → 1.13.19

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
- if (idCliente === 'sJzhGqaJcddq96x80hZAlPJ6pET2') {
227
+ if (idCliente === 'sJzhGqaJcddq96x80hZAlPJ6pET2' && process.env.NODE_ENV === 'PROD') {
228
228
  console.log('cambiarTonoEntrenadorNeutro');
229
229
  text = yield cambiarTonoEntrenadorNeutro(text);
230
230
  }
@@ -13,6 +13,7 @@ exports.sendPrompt = void 0;
13
13
  const { VertexAI } = require('@google-cloud/vertexai');
14
14
  function sendPrompt(prompt) {
15
15
  return __awaiter(this, void 0, void 0, function* () {
16
+ console.log(process.env.GOOGLE_APPLICATION_CREDENTIALS);
16
17
  // Inicializa el cliente de Vertex AI
17
18
  const vertex_ai = new VertexAI({
18
19
  project: 'glass-timing-393523', // Reemplaza con tu ID de proyecto de Google Cloud
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/prompt/index.ts"],"names":[],"mappings":"AAEA,iBAAe,UAAU,CAAC,MAAM,KAAA,gBAgC/B;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/prompt/index.ts"],"names":[],"mappings":"AAEA,iBAAe,UAAU,CAAC,MAAM,KAAA,gBAiC/B;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runnerpro/backend",
3
- "version": "1.13.17",
3
+ "version": "1.13.19",
4
4
  "description": "A collection of common backend functions",
5
5
  "exports": {
6
6
  ".": "./lib/cjs/index.js"