@sprucelabs/sprucebot-llm 18.1.1 → 18.1.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.
|
@@ -235,7 +235,7 @@ export default class ResponseParserV2 {
|
|
|
235
235
|
}
|
|
236
236
|
const name = span.name;
|
|
237
237
|
// Always strip the call from the user-facing message once recognized.
|
|
238
|
-
callbackStrippedMessage = stripCallFromMessage(callbackStrippedMessage, span.fullMatch);
|
|
238
|
+
callbackStrippedMessage = stripCallFromMessage(callbackStrippedMessage, span.fullMatch.trim());
|
|
239
239
|
let options;
|
|
240
240
|
try {
|
|
241
241
|
options = span.argsJson ? JSON.parse(span.argsJson) : undefined;
|
|
@@ -228,7 +228,7 @@ class ResponseParserV2 {
|
|
|
228
228
|
}
|
|
229
229
|
const name = span.name;
|
|
230
230
|
// Always strip the call from the user-facing message once recognized.
|
|
231
|
-
callbackStrippedMessage = stripCallFromMessage(callbackStrippedMessage, span.fullMatch);
|
|
231
|
+
callbackStrippedMessage = stripCallFromMessage(callbackStrippedMessage, span.fullMatch.trim());
|
|
232
232
|
let options;
|
|
233
233
|
try {
|
|
234
234
|
options = span.argsJson ? JSON.parse(span.argsJson) : undefined;
|