@sprucelabs/sprucebot-llm 11.3.3 → 11.3.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.
|
@@ -14,7 +14,7 @@ class SpruceError extends error_1.default {
|
|
|
14
14
|
message = `You must create a bot and set it using 'SprucebotLlmFactory.setInstance(bot)' before you can get an instance of it.`;
|
|
15
15
|
break;
|
|
16
16
|
case 'INVALID_CALLBACK':
|
|
17
|
-
message = `The callback you tried to invoke (${options.matchedCallback}) is not valid.
|
|
17
|
+
message = `The callback you tried to invoke (${options.matchedCallback}) is not valid. If you are calling a valid callback, make sure the tag is closed correctly with />> or <</{tagname}>> depending on whether you are passing it arguments. Here is a list of valid callbacks for reference:\n${options.validCallbacks.map((name, idx) => `${idx + 1}: ${name}`).join('\n')}`;
|
|
18
18
|
break;
|
|
19
19
|
case 'CALLBACK_ERROR':
|
|
20
20
|
message =
|
|
@@ -9,7 +9,7 @@ export default class SpruceError extends BaseSpruceError {
|
|
|
9
9
|
message = `You must create a bot and set it using 'SprucebotLlmFactory.setInstance(bot)' before you can get an instance of it.`;
|
|
10
10
|
break;
|
|
11
11
|
case 'INVALID_CALLBACK':
|
|
12
|
-
message = `The callback you tried to invoke (${options.matchedCallback}) is not valid.
|
|
12
|
+
message = `The callback you tried to invoke (${options.matchedCallback}) is not valid. If you are calling a valid callback, make sure the tag is closed correctly with />> or <</{tagname}>> depending on whether you are passing it arguments. Here is a list of valid callbacks for reference:\n${options.validCallbacks.map((name, idx) => `${idx + 1}: ${name}`).join('\n')}`;
|
|
13
13
|
break;
|
|
14
14
|
case 'CALLBACK_ERROR':
|
|
15
15
|
message =
|