@burtson-labs/bandit-engine 2.0.68 → 2.0.69
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/{chat-5QSGMPHN.mjs → chat-FLMR4EI6.mjs} +2 -2
- package/dist/{chunk-EHBZ4D7R.mjs → chunk-6KU3NOZW.mjs} +5 -7
- package/dist/chunk-6KU3NOZW.mjs.map +1 -0
- package/dist/{chunk-HUUWQOBF.mjs → chunk-NL4BY4YL.mjs} +2 -2
- package/dist/index.js +4 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/management/management.js +4 -6
- package/dist/management/management.js.map +1 -1
- package/dist/management/management.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-EHBZ4D7R.mjs.map +0 -1
- /package/dist/{chat-5QSGMPHN.mjs.map → chat-FLMR4EI6.mjs.map} +0 -0
- /package/dist/{chunk-HUUWQOBF.mjs.map → chunk-NL4BY4YL.mjs.map} +0 -0
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
chat_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6KU3NOZW.mjs";
|
|
4
4
|
import {
|
|
5
5
|
chat_provider_default
|
|
6
6
|
} from "./chunk-HHMGNCBS.mjs";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
useGatewayHealth,
|
|
11
11
|
useGatewayMemory,
|
|
12
12
|
useGatewayModels
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-NL4BY4YL.mjs";
|
|
14
14
|
import "./chunk-U633CJBV.mjs";
|
|
15
15
|
import "./chunk-6ITUH375.mjs";
|
|
16
16
|
import "./chunk-IDZEEONG.mjs";
|
|
@@ -23325,12 +23325,8 @@ Using these results together with your own knowledge, answer my original questio
|
|
|
23325
23325
|
options: { num_predict: tokenLimit + 250 }
|
|
23326
23326
|
};
|
|
23327
23327
|
clearFlushTimer();
|
|
23328
|
-
|
|
23329
|
-
|
|
23330
|
-
summaryPreamble ? `${summaryPreamble}
|
|
23331
|
-
|
|
23332
|
-
_Writing the answer\u2026_` : "_Writing the answer\u2026_"
|
|
23333
|
-
);
|
|
23328
|
+
setStreamBuffer("");
|
|
23329
|
+
setIsThinking?.(true);
|
|
23334
23330
|
const summaryText = await new Promise((resolve) => {
|
|
23335
23331
|
let acc = "";
|
|
23336
23332
|
let settled = false;
|
|
@@ -23348,6 +23344,7 @@ _Writing the answer\u2026_` : "_Writing the answer\u2026_"
|
|
|
23348
23344
|
const visible = stripThinking(acc);
|
|
23349
23345
|
latestDisplayMessage = visible;
|
|
23350
23346
|
lastPartialRef.current.text = visible;
|
|
23347
|
+
if (visible) setIsThinking?.(false);
|
|
23351
23348
|
setStreamBuffer(visible);
|
|
23352
23349
|
}
|
|
23353
23350
|
},
|
|
@@ -23369,6 +23366,7 @@ _Writing the answer\u2026_` : "_Writing the answer\u2026_"
|
|
|
23369
23366
|
done("");
|
|
23370
23367
|
}, 3e4);
|
|
23371
23368
|
});
|
|
23369
|
+
setIsThinking?.(false);
|
|
23372
23370
|
if (summaryText.trim()) {
|
|
23373
23371
|
const cleanedSummary = summaryText.replace(
|
|
23374
23372
|
/\n{1,}\s*(?:[*_#>\s]*)(?:sources?|references?|citations?|further reading)(?:\s*:)?\s*(?:[*_]*)\s*\n[\s\S]*$/i,
|