utilitas 1998.2.27 → 1998.2.28
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/alan.mjs +6 -7
- package/lib/manifest.mjs +1 -1
- package/package.json +1 -1
package/lib/alan.mjs
CHANGED
|
@@ -1019,13 +1019,12 @@ const promptGemini = async (content, options) => {
|
|
|
1019
1019
|
), `This model does not support JSON output: ${genModel} `);
|
|
1020
1020
|
const chat = generative.startChat({
|
|
1021
1021
|
history: [
|
|
1022
|
-
...options?.messages && !options?.attachments?.length
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
options
|
|
1026
|
-
] : [],
|
|
1027
|
-
],
|
|
1028
|
-
...generationConfig(options),
|
|
1022
|
+
...options?.messages && !options?.attachments?.length
|
|
1023
|
+
? options.messages : [],
|
|
1024
|
+
...options?.toolsResult ? [{
|
|
1025
|
+
role: user, parts: buildGeminiMessage(content, options)
|
|
1026
|
+
}, options?.toolsResult[0]] : [],
|
|
1027
|
+
], ...generationConfig(options),
|
|
1029
1028
|
});
|
|
1030
1029
|
const resp = chat[options?.stream ? 'sendMessageStream' : 'sendMessage'](
|
|
1031
1030
|
options?.toolsResult ?
|
package/lib/manifest.mjs
CHANGED