@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.
package/lib/cjs/prompt/index.js
CHANGED
|
@@ -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
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/prompt/index.ts"],"names":[],"mappings":"AAgBA,iBAAe,UAAU,CAAC,MAAM,KAAA,
|
|
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"}
|