utilitas 1999.1.45 → 1999.1.47
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/dist/utilitas.lite.mjs +1 -1
- package/dist/utilitas.lite.mjs.map +1 -1
- package/lib/alan.mjs +6 -5
- package/lib/manifest.mjs +1 -1
- package/package.json +1 -1
package/lib/alan.mjs
CHANGED
|
@@ -44,13 +44,14 @@ const _NEED = [
|
|
|
44
44
|
|
|
45
45
|
const [
|
|
46
46
|
png, jpeg, mov, mpeg, mp4, mpg, avi, wmv, mpegps, flv, gif, webp, pdf, aac,
|
|
47
|
-
flac, mp3, m4a, mpga, opus, pcm, wav, webm, tgpp, pcm16, ogg,
|
|
47
|
+
flac, mp3, mpega, m4a, mpga, opus, pcm, wav, webm, tgpp, pcm16, ogg,
|
|
48
48
|
] = [
|
|
49
49
|
'image/png', 'image/jpeg', 'video/mov', 'video/mpeg', 'video/mp4',
|
|
50
50
|
'video/mpg', 'video/avi', 'video/wmv', 'video/mpegps', 'video/x-flv',
|
|
51
51
|
'image/gif', 'image/webp', 'application/pdf', 'audio/aac', 'audio/flac',
|
|
52
|
-
'audio/mp3', 'audio/
|
|
53
|
-
'audio/wav', 'audio/webm', 'video/3gpp', 'audio/x-wav',
|
|
52
|
+
'audio/mp3', 'audio/mpeg', 'audio/m4a', 'audio/mpga', 'audio/opus',
|
|
53
|
+
'audio/pcm', 'audio/wav', 'audio/webm', 'video/3gpp', 'audio/x-wav',
|
|
54
|
+
'audio/ogg',
|
|
54
55
|
];
|
|
55
56
|
|
|
56
57
|
const [
|
|
@@ -124,7 +125,7 @@ const GEMINI_RULES = {
|
|
|
124
125
|
maxImageSize: Infinity, maxUrlSize: gb(2), maxVideoLength: minute(45),
|
|
125
126
|
maxVideoPerPrompt: 10, vision: true, supportedMimeTypes: [
|
|
126
127
|
png, jpeg, mov, mpeg, mp4, mpg, avi, wmv, mpegps, flv, pdf, aac,
|
|
127
|
-
flac, mp3, m4a, mpga, opus, pcm, wav, webm, tgpp,
|
|
128
|
+
flac, mp3, mpega, m4a, mpga, opus, pcm, wav, webm, tgpp,
|
|
128
129
|
], defaultProvider: GEMINI,
|
|
129
130
|
};
|
|
130
131
|
|
|
@@ -712,7 +713,7 @@ const packResp = async (resp, options) => {
|
|
|
712
713
|
else if (options?.simple && options?.jsonMode) { return json; }
|
|
713
714
|
else if (options?.simple && options?.imageMode) { return images; }
|
|
714
715
|
else if (options?.simple) { return simpleText; }
|
|
715
|
-
else if (options?.jsonMode) { txt =
|
|
716
|
+
else if (options?.jsonMode) { txt = simpleText; }
|
|
716
717
|
// references debug codes:
|
|
717
718
|
// references = {
|
|
718
719
|
// "segments": [
|
package/lib/manifest.mjs
CHANGED