modelmix 3.1.0 → 3.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.
- package/index.js +3 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -245,9 +245,9 @@ class MessageHandler {
|
|
|
245
245
|
return JSON.parse(response);
|
|
246
246
|
}
|
|
247
247
|
|
|
248
|
-
async block({
|
|
249
|
-
if (
|
|
250
|
-
this.config.systemExtra = "\
|
|
248
|
+
async block({ addSystemExtra = true } = {}) {
|
|
249
|
+
if (addSystemExtra) {
|
|
250
|
+
this.config.systemExtra = "\nReturn the result of the task between triple backtick block code tags: ```";
|
|
251
251
|
}
|
|
252
252
|
const response = await this.message();
|
|
253
253
|
this.config.systemExtra = "";
|