wingbot 3.73.6 → 3.73.7
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/package.json +1 -1
- package/src/Responder.js +17 -4
package/package.json
CHANGED
package/src/Responder.js
CHANGED
|
@@ -448,16 +448,29 @@ class Responder {
|
|
|
448
448
|
return resolved;
|
|
449
449
|
}
|
|
450
450
|
|
|
451
|
-
async llmSessionWithHistory (
|
|
451
|
+
async llmSessionWithHistory (
|
|
452
|
+
contextType = this.LLM_CTX_DEFAULT,
|
|
453
|
+
transcriptLength = undefined,
|
|
454
|
+
transcriptFlag = undefined
|
|
455
|
+
) {
|
|
452
456
|
const {
|
|
453
457
|
transcriptAnonymize,
|
|
454
|
-
transcriptFlag,
|
|
455
|
-
transcriptLength
|
|
458
|
+
transcriptFlag: transcriptFlagCfg,
|
|
459
|
+
transcriptLength: transcriptLengthCfg
|
|
456
460
|
} = this.llm.configuration;
|
|
457
461
|
|
|
462
|
+
const computedTranscriptLength = transcriptLength === undefined
|
|
463
|
+
? transcriptLengthCfg
|
|
464
|
+
: transcriptLength;
|
|
465
|
+
const computedTranscriptFlag = transcriptFlag === undefined
|
|
466
|
+
? transcriptFlagCfg : transcriptFlag;
|
|
467
|
+
|
|
458
468
|
const [systems, transcript] = await Promise.all([
|
|
459
469
|
this._getSystemContentForType(contextType),
|
|
460
|
-
this.getTranscript(
|
|
470
|
+
this.getTranscript(
|
|
471
|
+
computedTranscriptLength,
|
|
472
|
+
computedTranscriptFlag
|
|
473
|
+
)
|
|
461
474
|
]);
|
|
462
475
|
|
|
463
476
|
const chat = [
|