utilitas 1999.1.80 → 1999.1.82

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/alan.mjs CHANGED
@@ -62,7 +62,7 @@ const [
62
62
  JINA_CLIP, VERTEX, GEMINI_25_PRO, SILICONFLOW, SF_DEEPSEEK_R1,
63
63
  ] = [
64
64
  'OpenAI', 'Gemini', 'OPENAI_TRAINING', 'Ollama', 'gpt-4o', 'o3',
65
- 'gemini-2.5-flash-preview-05-20', 'nova', 'deepseek-r1', '```',
65
+ 'gemini-2.5-flash', 'nova', 'deepseek-r1', '```',
66
66
  'text-embedding-3-small', 'text-embedding-3-large',
67
67
  'claude-opus-4@20250514', 'audio', 'wav', '[ATTACHMENTS]', 'CHAT',
68
68
  'OPENAI_VOICE', 'medium', 'low', 'high', 'medium', 'think', '<think>',
@@ -76,9 +76,8 @@ const [
76
76
  x => 60 * 60 * x, x => 1024 * 1024 * 1024 * x,
77
77
  x => x.replace(/[\.\s]*$/, ''), { embedding: true },
78
78
  'gemini-2.0-flash-preview-image-generation', 'image', 'Jina',
79
- 'jina-deepsearch-v1', 'jina-clip-v2', 'Vertex',
80
- 'gemini-2.5-pro-preview-06-05', 'SiliconFlow',
81
- 'Pro/deepseek-ai/DeepSeek-R1',
79
+ 'jina-deepsearch-v1', 'jina-clip-v2', 'Vertex', 'gemini-2.5-pro',
80
+ 'SiliconFlow', 'Pro/deepseek-ai/DeepSeek-R1',
82
81
  ];
83
82
 
84
83
  const [tool, messages, text]
package/lib/gen.mjs CHANGED
@@ -5,7 +5,6 @@ import {
5
5
 
6
6
  import { convert, MIME_PNG, MIME_MP4, getTempPath } from './storage.mjs';
7
7
  import { createReadStream } from 'fs';
8
- import { hash } from './encryption.mjs';
9
8
 
10
9
  const _NEED = ['OpenAI', '@google/genai'];
11
10
  const log = (cnt, opt) => _log(cnt, import.meta.url, { time: 1, ...opt || {} });
@@ -186,7 +185,7 @@ const video = async (prompt, options) => {
186
185
  // @todo: fix this
187
186
  // https://github.com/googleapis/js-genai/compare/main...Leask:js-genai:main
188
187
  await client.gen.files.download({ file: x, downloadPath });
189
- await timeout(5000);
188
+ await timeout(1000 * 10); // hack to wait for file to be downloaded
190
189
  return {
191
190
  caption: `🎥 by ${VEO_MODEL}`,
192
191
  data: await extractVideo(downloadPath, options),
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.80",
4
+ "version": "1999.1.82",
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.80",
4
+ "version": "1999.1.82",
5
5
  "private": false,
6
6
  "homepage": "https://github.com/Leask/utilitas",
7
7
  "main": "index.mjs",