@sprucelabs/sprucebot-llm 13.0.0 → 13.0.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.
package/README.md CHANGED
@@ -421,3 +421,5 @@ Useful commands from `package.json`:
421
421
  - `yarn chat`
422
422
  - `yarn chat.images`
423
423
  - `yarn generate.samples`
424
+
425
+ [![AI TDD Contributor](https://regressionproof.ai/badge.svg)](https://regressionproof.ai)
@@ -74,9 +74,11 @@ class TurnRequest {
74
74
  return parsedMessage;
75
75
  }
76
76
  async sendMessageToAdapter(model) {
77
- return await this.adapter.sendMessage(this.bot, {
78
- model,
79
- });
77
+ return await this.adapter.sendMessage(this.bot, model
78
+ ? {
79
+ model,
80
+ }
81
+ : undefined);
80
82
  }
81
83
  async parseResponse(response, callbacks) {
82
84
  const parser = ResponseParser_1.default.getInstance();
@@ -82,9 +82,11 @@ export default class TurnRequest {
82
82
  }
83
83
  sendMessageToAdapter(model) {
84
84
  return __awaiter(this, void 0, void 0, function* () {
85
- return yield this.adapter.sendMessage(this.bot, {
86
- model,
87
- });
85
+ return yield this.adapter.sendMessage(this.bot, model
86
+ ? {
87
+ model,
88
+ }
89
+ : undefined);
88
90
  });
89
91
  }
90
92
  parseResponse(response, callbacks) {
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "eta"
9
9
  ]
10
10
  },
11
- "version": "13.0.0",
11
+ "version": "13.0.2",
12
12
  "files": [
13
13
  "build"
14
14
  ],