utilitas 1999.1.27 → 1999.1.29
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/README.md +1 -0
- package/dist/utilitas.lite.mjs +1 -1
- package/dist/utilitas.lite.mjs.map +1 -1
- package/lib/alan.mjs +9 -0
- package/lib/manifest.mjs +1 -1
- package/package.json +1 -1
package/lib/alan.mjs
CHANGED
|
@@ -747,6 +747,14 @@ const packResp = async (resp, options) => {
|
|
|
747
747
|
).join('\n');
|
|
748
748
|
}
|
|
749
749
|
txt = txt.split('\n');
|
|
750
|
+
const reJina = new RegExp(`^\s*${THINK_STR}(.*)${THINK_END}\s*$`);
|
|
751
|
+
const fixJina = [];
|
|
752
|
+
for (let l of txt) {
|
|
753
|
+
if (reJina.test(l)) {
|
|
754
|
+
fixJina.push(THINK_STR, l.replace(reJina, '$1'), THINK_END);
|
|
755
|
+
} else { fixJina.push(l); }
|
|
756
|
+
}
|
|
757
|
+
txt = fixJina;
|
|
750
758
|
for (let i in txt) {
|
|
751
759
|
switch (txt[i]) {
|
|
752
760
|
case THINK_STR: txt[i] = MD_CODE + THINK; break;
|
|
@@ -1514,6 +1522,7 @@ export {
|
|
|
1514
1522
|
CODE_INTERPRETER,
|
|
1515
1523
|
DEEPSEEK_R1,
|
|
1516
1524
|
DEFAULT_MODELS,
|
|
1525
|
+
FEATURE_ICONS,
|
|
1517
1526
|
FUNCTION,
|
|
1518
1527
|
GEMINI_20_FLASH_THINKING,
|
|
1519
1528
|
GEMINI_20_FLASH,
|
package/lib/manifest.mjs
CHANGED