wingbot 3.71.3 → 3.71.5

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wingbot",
3
- "version": "3.71.3",
3
+ "version": "3.71.5",
4
4
  "description": "Enterprise Messaging Bot Conversation Engine",
5
5
  "main": "index.js",
6
6
  "type": "commonjs",
package/src/LLM.js CHANGED
@@ -172,9 +172,9 @@ class LLM {
172
172
  */
173
173
  static toMessages (result) {
174
174
  let filtered = result.content
175
- .replace(/\n\n+/g, '\n')
176
- .split(/\n+(?!\s*-)/g)
177
- .map((t) => t.replace(/\n\s+/g, '\n')
175
+ .replace(/\n\n\n+/g, '\n\n')
176
+ .split(/\n\n+(?!\s*-)/g)
177
+ .map((t) => t.replace(/\s*\n\s+/g, '\n')
178
178
  .trim())
179
179
  .filter((t) => !!t);
180
180
 
package/src/Responder.js CHANGED
@@ -339,6 +339,15 @@ class Responder {
339
339
  ...LLM.anonymizeTranscript(transcript, transcriptAnonymize)
340
340
  ];
341
341
 
342
+ // eslint-disable-next-line no-console
343
+ console.log({
344
+ transcript,
345
+ transcriptLength,
346
+ transcriptFlag,
347
+ transcriptAnonymize,
348
+ chat
349
+ });
350
+
342
351
  return new LLMSession(this.llm, chat, this._llmSend.bind(this));
343
352
  }
344
353