utilitas 1999.1.87 → 1999.1.88
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/gen.mjs +5 -4
- package/lib/manifest.mjs +1 -1
- package/package.json +1 -1
package/lib/gen.mjs
CHANGED
|
@@ -13,8 +13,8 @@ const [
|
|
|
13
13
|
IMAGEN_MODEL, OPENAI_MODEL, VEO_MODEL,
|
|
14
14
|
] = [
|
|
15
15
|
{}, 'OPENAI', 'GEMINI', 'BASE64', 'FILE', 'BUFFER',
|
|
16
|
-
'Error generating media.', 'imagen-
|
|
17
|
-
'veo-
|
|
16
|
+
'Error generating media.', 'imagen-4.0-ultra-generate-001',
|
|
17
|
+
'gpt-image-1', 'veo-3.0-generate-preview',
|
|
18
18
|
];
|
|
19
19
|
|
|
20
20
|
const init = async (options) => {
|
|
@@ -109,7 +109,8 @@ const image = async (prompt, options) => {
|
|
|
109
109
|
case GEMINI:
|
|
110
110
|
var resp = await client.gen.models.generateImages({
|
|
111
111
|
model: IMAGEN_MODEL, prompt, config: {
|
|
112
|
-
numberOfImages: n,
|
|
112
|
+
numberOfImages: n, sampleImageSize: '2K',
|
|
113
|
+
includeRaiReason: true,
|
|
113
114
|
// "1:1" (default), "3:4", "4:3", "9:16", and "16:9"
|
|
114
115
|
aspectRatio: '16:9', personGeneration: 'allow_adult',
|
|
115
116
|
...options?.config || {},
|
|
@@ -153,7 +154,7 @@ const video = async (prompt, options) => {
|
|
|
153
154
|
var resp = await client.gen.models.generateVideos({
|
|
154
155
|
model: VEO_MODEL, prompt, config: {
|
|
155
156
|
aspectRatio: '16:9', numberOfVideos: 1,
|
|
156
|
-
personGeneration: 'allow_adult',
|
|
157
|
+
// personGeneration: 'allow_adult',
|
|
157
158
|
enablePromptRewriting: true, addWatermark: false,
|
|
158
159
|
includeRaiReason: true, ...options?.config || {},
|
|
159
160
|
},
|
package/lib/manifest.mjs
CHANGED