@runnerpro/backend 1.17.4 → 1.17.6
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.
|
@@ -49,6 +49,8 @@ const transcribeAudio = (fileBuffer, mimetype) => __awaiter(void 0, void 0, void
|
|
|
49
49
|
return result || '[Audio vacío]';
|
|
50
50
|
}
|
|
51
51
|
catch (error) {
|
|
52
|
+
// eslint-disable-next-line no-console
|
|
53
|
+
console.error('[transcribeAudio] Error:', (error === null || error === void 0 ? void 0 : error.message) || error);
|
|
52
54
|
(0, index_3.err)(null, null, error, null);
|
|
53
55
|
return '[Error al transcribir audio]';
|
|
54
56
|
}
|
|
@@ -77,6 +79,8 @@ const describeImage = (fileBuffer, mimetype) => __awaiter(void 0, void 0, void 0
|
|
|
77
79
|
return result || '[Imagen no analizable]';
|
|
78
80
|
}
|
|
79
81
|
catch (error) {
|
|
82
|
+
// eslint-disable-next-line no-console
|
|
83
|
+
console.error('[describeImage] Error:', (error === null || error === void 0 ? void 0 : error.message) || error);
|
|
80
84
|
(0, index_3.err)(null, null, error, null);
|
|
81
85
|
return '[Error al describir imagen]';
|
|
82
86
|
}
|
package/lib/cjs/prompt/index.js
CHANGED
|
@@ -56,7 +56,7 @@ function sendPrompt(prompt, model = 'FLASH', systemPrompt = undefined, media = u
|
|
|
56
56
|
if (model === 'LITE')
|
|
57
57
|
modelGemini = 'gemini-2.5-flash-lite';
|
|
58
58
|
else if (model === 'PRO')
|
|
59
|
-
modelGemini = 'gemini-
|
|
59
|
+
modelGemini = 'gemini-2.5-pro'; // Modelo más potente y estable
|
|
60
60
|
else
|
|
61
61
|
modelGemini = 'gemini-2.5-flash';
|
|
62
62
|
// Configura el modelo generativo
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/mediaProcessing/index.ts"],"names":[],"mappings":";AAqBA;;;;;;;;;;;;GAYG;AACH,QAAA,MAAM,eAAe,eAAsB,MAAM,YAAY,MAAM,KAAG,QAAQ,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/mediaProcessing/index.ts"],"names":[],"mappings":";AAqBA;;;;;;;;;;;;GAYG;AACH,QAAA,MAAM,eAAe,eAAsB,MAAM,YAAY,MAAM,KAAG,QAAQ,MAAM,CAanF,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,QAAA,MAAM,aAAa,eAAsB,MAAM,YAAY,MAAM,KAAG,QAAQ,MAAM,CAajF,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,QAAA,MAAM,gBAAgB,cAAqB,MAAM,cAAc,MAAM,YAAY,MAAM,KAAG,QAAQ,IAAI,CAkBrG,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,QAAA,MAAM,oBAAoB,WAAkB,GAAG;eAAwB,MAAM;YAAU,MAAM;EAwD5F,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,CAAC"}
|