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/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-3.0-generate-002', 'gpt-image-1',
17
- 'veo-2.0-generate-001',
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, includeRaiReason: true,
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
@@ -1,7 +1,7 @@
1
1
  const manifest = {
2
2
  "name": "utilitas",
3
3
  "description": "Just another common utility for JavaScript.",
4
- "version": "1999.1.87",
4
+ "version": "1999.1.88",
5
5
  "private": false,
6
6
  "homepage": "https://github.com/Leask/utilitas",
7
7
  "main": "index.mjs",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "utilitas",
3
3
  "description": "Just another common utility for JavaScript.",
4
- "version": "1999.1.87",
4
+ "version": "1999.1.88",
5
5
  "private": false,
6
6
  "homepage": "https://github.com/Leask/utilitas",
7
7
  "main": "index.mjs",