@sprucelabs/sprucebot-llm 18.1.2 → 18.1.3
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.
|
@@ -257,7 +257,7 @@ export default class ResponseParserV2 {
|
|
|
257
257
|
}
|
|
258
258
|
try {
|
|
259
259
|
if (callback === null || callback === void 0 ? void 0 : callback.parameters) {
|
|
260
|
-
validateAndNormalizeCallbackOptions(callback.parameters, options);
|
|
260
|
+
validateAndNormalizeCallbackOptions(callback.parameters, options !== null && options !== void 0 ? options : {});
|
|
261
261
|
}
|
|
262
262
|
const results = yield (callback === null || callback === void 0 ? void 0 : callback.cb(options));
|
|
263
263
|
callbackResults += this.renderCallbackResults({ name, results });
|
|
@@ -250,7 +250,7 @@ class ResponseParserV2 {
|
|
|
250
250
|
}
|
|
251
251
|
try {
|
|
252
252
|
if (callback?.parameters) {
|
|
253
|
-
(0, validateAndNormalizeCallbackOptions_1.default)(callback.parameters, options);
|
|
253
|
+
(0, validateAndNormalizeCallbackOptions_1.default)(callback.parameters, options ?? {});
|
|
254
254
|
}
|
|
255
255
|
const results = await callback?.cb(options);
|
|
256
256
|
callbackResults += this.renderCallbackResults({ name, results });
|