utilitas 1999.1.76 → 1999.1.78

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
@@ -59,7 +59,7 @@ const [
59
59
  TOOL, silent, GEMINI_EMBEDDING_M, INVALID_FILE, tokenSafeRatio,
60
60
  GPT_QUERY_LIMIT, CONTENT_IS_REQUIRED, OPENAI_HI_RES_SIZE, k, kT, m, minute,
61
61
  hour, gb, trimTailing, EBD, GEMINI_20_FLASH, IMAGE, JINA, JINA_DEEPSEARCH,
62
- JINA_CLIP, VERTEX, GEMINI_25_PRO, SILICONFLOW, SF_DEEPSEEK_V3,
62
+ JINA_CLIP, VERTEX, GEMINI_25_PRO, SILICONFLOW, SF_DEEPSEEK_R1,
63
63
  ] = [
64
64
  'OpenAI', 'Gemini', 'OPENAI_TRAINING', 'Ollama', 'gpt-4o', 'o3',
65
65
  'gemini-2.5-flash-preview-05-20', 'nova', 'deepseek-r1', '```',
@@ -77,8 +77,8 @@ const [
77
77
  x => x.replace(/[\.\s]*$/, ''), { embedding: true },
78
78
  'gemini-2.0-flash-preview-image-generation', 'image', 'Jina',
79
79
  'jina-deepsearch-v1', 'jina-clip-v2', 'Vertex',
80
- 'gemini-2.5-pro-preview-05-06', 'SiliconFlow',
81
- 'Pro/deepseek-ai/DeepSeek-V3',
80
+ 'gemini-2.5-pro-preview-06-05', 'SiliconFlow',
81
+ 'Pro/deepseek-ai/DeepSeek-R1',
82
82
  ];
83
83
 
84
84
  const [tool, messages, text]
@@ -126,6 +126,11 @@ const GEMINI_RULES = {
126
126
  ], defaultProvider: GEMINI,
127
127
  };
128
128
 
129
+ const DEEPSEEK_R1_RULES = {
130
+ contextWindow: kT(128), maxOutputTokens: k(8),
131
+ reasoning: true,
132
+ };
133
+
129
134
  // https://platform.openai.com/docs/models
130
135
  // https://cloud.google.com/vertex-ai/docs/generative-ai/learn/models
131
136
  const MODELS = {
@@ -158,14 +163,8 @@ const MODELS = {
158
163
  reasoning: true, json: true, vision: true,
159
164
  deepsearch: true, defaultProvider: JINA,
160
165
  },
161
- [DEEPSEEK_R1]: {
162
- contextWindow: kT(128), maxOutputTokens: k(8),
163
- reasoning: true,
164
- },
165
- [SF_DEEPSEEK_V3]: {
166
- contextWindow: kT(64), maxOutputTokens: k(8),
167
- defaultProvider: SILICONFLOW,
168
- },// ERROR: column cannot have more than 2000 dimensions for hnsw index
166
+ [DEEPSEEK_R1]: DEEPSEEK_R1_RULES,
167
+ [SF_DEEPSEEK_R1]: { ...DEEPSEEK_R1_RULES, defaultProvider: SILICONFLOW },
169
168
  [TEXT_EMBEDDING_3_LARGE]: { ...OPENAI_EBD, dimension: k(3) },
170
169
  [TEXT_EMBEDDING_3_SMALL]: { ...OPENAI_EBD, dimension: k(1.5) },
171
170
  [GEMINI_EMBEDDING_M]: { ...EBD, maxInputTokens: k(8), dimension: k(3) },
@@ -205,7 +204,7 @@ for (const n in MODELS) {
205
204
  const DEFAULT_MODELS = {
206
205
  [OPENAI]: GPT_41,
207
206
  [AZURE_OPENAI]: GPT_4O,
208
- [SILICONFLOW]: SF_DEEPSEEK_V3,
207
+ [SILICONFLOW]: SF_DEEPSEEK_R1,
209
208
  [GEMINI]: GEMINI_25_FLASH,
210
209
  [ANTHROPIC]: CLOUD_40_OPUS,
211
210
  [VERTEX_ANTHROPIC]: CLOUD_40_OPUS,
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.76",
4
+ "version": "1999.1.78",
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.76",
4
+ "version": "1999.1.78",
5
5
  "private": false,
6
6
  "homepage": "https://github.com/Leask/utilitas",
7
7
  "main": "index.mjs",