wingbot 3.71.3 → 3.71.4

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/LLM.js +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wingbot",
3
- "version": "3.71.3",
3
+ "version": "3.71.4",
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