wingbot 3.71.0 → 3.71.2
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 +2 -3
- package/src/LLM.js +1 -1
- package/src/Processor.js +10 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wingbot",
|
|
3
|
-
"version": "3.71.
|
|
3
|
+
"version": "3.71.2",
|
|
4
4
|
"description": "Enterprise Messaging Bot Conversation Engine",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -51,8 +51,7 @@
|
|
|
51
51
|
"mocha": "^10.2.0",
|
|
52
52
|
"nyc": "^15.1.0",
|
|
53
53
|
"rimraf": "^5.0.5",
|
|
54
|
-
"sinon": "^17.0.1"
|
|
55
|
-
"tsd-jsdoc": "^2.5.0"
|
|
54
|
+
"sinon": "^17.0.1"
|
|
56
55
|
},
|
|
57
56
|
"dependencies": {
|
|
58
57
|
"@amplitude/ua-parser-js": "^0.7.33",
|
package/src/LLM.js
CHANGED
package/src/Processor.js
CHANGED
|
@@ -405,10 +405,18 @@ class Processor extends EventEmitter {
|
|
|
405
405
|
return { status: 304 };
|
|
406
406
|
}
|
|
407
407
|
|
|
408
|
-
const
|
|
408
|
+
const llmOptions = {
|
|
409
409
|
provider: new LLMMockProvider(),
|
|
410
410
|
...this.options.llm
|
|
411
|
-
}
|
|
411
|
+
};
|
|
412
|
+
|
|
413
|
+
if (typeof messageSender.logPrompt === 'function') {
|
|
414
|
+
Object.assign(llmOptions, {
|
|
415
|
+
logger: messageSender
|
|
416
|
+
});
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
const llm = new LLM(llmOptions);
|
|
412
420
|
|
|
413
421
|
const result = await this
|
|
414
422
|
._dispatch(message, pageId, messageSender, responderData, preloadPromise, llm);
|