@sprucelabs/sprucebot-llm 0.0.3 → 0.0.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.
@@ -20,7 +20,7 @@ class OpenAi {
20
20
  const response = await this.api.createCompletion({
21
21
  prompt,
22
22
  model: 'text-davinci-003',
23
- max_tokens: 100,
23
+ max_tokens: 250,
24
24
  stop: ['__Me__:'],
25
25
  });
26
26
  return ((_c = (_b = (_a = response.data.choices[0]) === null || _a === void 0 ? void 0 : _a.text) === null || _b === void 0 ? void 0 : _b.trim()) !== null && _c !== void 0 ? _c : exports.MESSAGE_RESPONSE_ERROR_MESSAGE);
package/build/chat.js CHANGED
@@ -49,7 +49,7 @@ const rl = readline.createInterface({ input: node_process_1.stdin, output: node_
49
49
  };
50
50
  const bot = bots.Bot({
51
51
  adapter,
52
- skill: skills.fileTransformer,
52
+ skill: skills.profile,
53
53
  youAre: "a bot named Sprucebot that is in test mode. At the start of every conversation, you introduce yourself and announce that you are in test mode so I don't get confused! You are both hip and adorable. You say things like, 'Jeepers' and 'Golly' or even 'Jeezey peezy'!",
54
54
  });
55
55
  do {
@@ -24,7 +24,7 @@ export class OpenAi {
24
24
  const response = yield this.api.createCompletion({
25
25
  prompt,
26
26
  model: 'text-davinci-003',
27
- max_tokens: 100,
27
+ max_tokens: 250,
28
28
  stop: ['__Me__:'],
29
29
  });
30
30
  return ((_c = (_b = (_a = response.data.choices[0]) === null || _a === void 0 ? void 0 : _a.text) === null || _b === void 0 ? void 0 : _b.trim()) !== null && _c !== void 0 ? _c : MESSAGE_RESPONSE_ERROR_MESSAGE);
package/build/esm/chat.js CHANGED
@@ -30,7 +30,7 @@ const rl = readline.createInterface({ input, output });
30
30
  };
31
31
  const bot = bots.Bot({
32
32
  adapter,
33
- skill: skills.fileTransformer,
33
+ skill: skills.profile,
34
34
  youAre: "a bot named Sprucebot that is in test mode. At the start of every conversation, you introduce yourself and announce that you are in test mode so I don't get confused! You are both hip and adorable. You say things like, 'Jeepers' and 'Golly' or even 'Jeezey peezy'!",
35
35
  });
36
36
  do {
@@ -10,6 +10,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  export default function buildCallbackSkill(bots) {
11
11
  return bots.Skill({
12
12
  yourJobIfYouChooseToAcceptItIs: "to be be the best appointment taker on the planet. You have a many years of experience. You are going to ask me only 2 questions for this practice run. First, you'll ask me to pick an available time. Then, you'll ask me to pick my favorite color:",
13
+ pleaseKeepInMindThat: [
14
+ "getting a service is really important, so if i don't like any of the time, as to check another day or if i want to see a different provider",
15
+ ],
13
16
  callbacks: {
14
17
  availableTimes: {
15
18
  cb: () => __awaiter(this, void 0, void 0, function* () {
@@ -3,6 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  function buildCallbackSkill(bots) {
4
4
  return bots.Skill({
5
5
  yourJobIfYouChooseToAcceptItIs: "to be be the best appointment taker on the planet. You have a many years of experience. You are going to ask me only 2 questions for this practice run. First, you'll ask me to pick an available time. Then, you'll ask me to pick my favorite color:",
6
+ pleaseKeepInMindThat: [
7
+ "getting a service is really important, so if i don't like any of the time, as to check another day or if i want to see a different provider",
8
+ ],
6
9
  callbacks: {
7
10
  availableTimes: {
8
11
  cb: async () => {
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "@sprucelabs/spruce-test-fixtures"
10
10
  ]
11
11
  },
12
- "version": "0.0.3",
12
+ "version": "0.0.4",
13
13
  "files": [
14
14
  "build"
15
15
  ],