agenr 0.9.10 → 0.9.11
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/CHANGELOG.md +6 -0
- package/dist/cli-main.js +14 -8
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/cli-main.js
CHANGED
|
@@ -4292,14 +4292,20 @@ function extractLlmDedupFromToolCall(message) {
|
|
|
4292
4292
|
}
|
|
4293
4293
|
async function llmDedupCheck(llmClient, entryA, entryB) {
|
|
4294
4294
|
try {
|
|
4295
|
-
const
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
|
|
4295
|
+
const timeoutMs = 15e3;
|
|
4296
|
+
const response = await Promise.race([
|
|
4297
|
+
runSimpleStream({
|
|
4298
|
+
model: llmClient.resolvedModel.model,
|
|
4299
|
+
context: buildLlmDedupContext(entryA, entryB),
|
|
4300
|
+
options: {
|
|
4301
|
+
apiKey: llmClient.credentials.apiKey
|
|
4302
|
+
},
|
|
4303
|
+
verbose: false
|
|
4304
|
+
}),
|
|
4305
|
+
new Promise(
|
|
4306
|
+
(_, reject) => setTimeout(() => reject(new Error("llmDedupCheck timed out")), timeoutMs)
|
|
4307
|
+
)
|
|
4308
|
+
]);
|
|
4303
4309
|
if (response.stopReason === "error" || response.errorMessage) {
|
|
4304
4310
|
return false;
|
|
4305
4311
|
}
|