@runnerpro/backend 1.13.28 → 1.13.30
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 +4 -3
- package/package.json +1 -1
package/lib/cjs/prompt/index.js
CHANGED
|
@@ -30,10 +30,11 @@ function sendPrompt(prompt, options = {}) {
|
|
|
30
30
|
topK: options.topK || 20,
|
|
31
31
|
},
|
|
32
32
|
});
|
|
33
|
+
console.log('prompt', prompt);
|
|
34
|
+
console.log('generativeModel', generativeModel);
|
|
33
35
|
try {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
const resp = yield Promise.race([generativeModel.generateContent(prompt), timeoutPromise]);
|
|
36
|
+
const resp = yield generativeModel.generateContent(prompt);
|
|
37
|
+
console.log('resp', resp.response.candidates[0].content);
|
|
37
38
|
const content = resp.response.candidates[0].content;
|
|
38
39
|
// Asumiendo que la respuesta es de tipo texto
|
|
39
40
|
console.log('content', content.parts);
|