@runnerpro/backend 1.13.14 → 1.13.16

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.
@@ -17,7 +17,7 @@ const vertex_ai = new VertexAI({
17
17
  location: 'us-central1', // Reemplaza con tu región
18
18
  });
19
19
  // Selecciona el modelo de Gemini
20
- const model = 'gemini-2.5-flash-preview-05-20'; // O cualquier otro modelo de Gemini disponible
20
+ const model = 'gemini-2.5-flash'; // O cualquier otro modelo de Gemini disponible
21
21
  // Configura el modelo generativo
22
22
  const generativeModel = vertex_ai.preview.getGenerativeModel({
23
23
  model: model,
@@ -32,6 +32,7 @@ function sendPrompt(prompt) {
32
32
  if (content.parts && content.parts.length > 0 && content.parts[0].text) {
33
33
  console.log('Respuesta de Gemini:');
34
34
  console.log(content.parts[0].text);
35
+ return content.parts[0].text;
35
36
  }
36
37
  else {
37
38
  console.log('No se recibió una respuesta de texto válida.');
@@ -1,3 +1,3 @@
1
- declare function sendPrompt(prompt: any): Promise<void>;
1
+ declare function sendPrompt(prompt: any): Promise<any>;
2
2
  export { sendPrompt };
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/prompt/index.ts"],"names":[],"mappings":"AAgBA,iBAAe,UAAU,CAAC,MAAM,KAAA,iBAiB/B;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/prompt/index.ts"],"names":[],"mappings":"AAgBA,iBAAe,UAAU,CAAC,MAAM,KAAA,gBAkB/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.14",
3
+ "version": "1.13.16",
4
4
  "description": "A collection of common backend functions",
5
5
  "exports": {
6
6
  ".": "./lib/cjs/index.js"