utilitas 1999.1.78 → 1999.1.79

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
@@ -1197,8 +1197,10 @@ const promptGemini = async (aiId, content, options = {}) => {
1197
1197
  const chat = client.chats.create({
1198
1198
  model: options.model, history, config: {
1199
1199
  responseMimeType: options.jsonMode ? MIME_JSON : MIME_TEXT,
1200
- thinkingConfig: model.reasoning ? { includeThoughts: true } : {},
1201
- systemInstruction, responseModalities: options.modalities || (
1200
+ ...model.reasoning ? {
1201
+ thinkingConfig: { includeThoughts: true },
1202
+ } : {}, systemInstruction,
1203
+ responseModalities: options.modalities || (
1202
1204
  options.imageMode ? [TEXT, IMAGE] : undefined
1203
1205
  ), ...options?.config || {}, ...model?.tools && !options.jsonMode
1204
1206
  && ![GEMINI_20_FLASH].includes(options.model)
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.78",
4
+ "version": "1999.1.79",
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.78",
4
+ "version": "1999.1.79",
5
5
  "private": false,
6
6
  "homepage": "https://github.com/Leask/utilitas",
7
7
  "main": "index.mjs",