@botpress/zai 1.0.1-beta.3 → 1.0.1-beta.5
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/dist/browser/index.js +1 -4
- package/dist/index.d.ts +917 -0
- package/dist/index.js +1743 -0
- package/dist/node/adapters/adapter.d.js +0 -0
- package/dist/node/adapters/botpress-table.d.js +1 -0
- package/dist/node/adapters/botpress-table.js +1 -4
- package/dist/node/adapters/memory.d.js +0 -0
- package/dist/node/index.d.js +9 -0
- package/dist/node/models.d.js +0 -0
- package/dist/node/operations/check.d.js +1 -0
- package/dist/node/operations/check.test.d.js +1 -0
- package/dist/node/operations/constants.d.js +0 -0
- package/dist/node/operations/errors.d.js +0 -0
- package/dist/node/operations/extract.d.js +1 -0
- package/dist/node/operations/extract.test.d.js +1 -0
- package/dist/node/operations/filter.d.js +1 -0
- package/dist/node/operations/filter.test.d.js +1 -0
- package/dist/node/operations/label.d.js +1 -0
- package/dist/node/operations/label.test.d.js +1 -0
- package/dist/node/operations/rewrite.d.js +1 -0
- package/dist/node/operations/rewrite.test.d.js +1 -0
- package/dist/node/operations/summarize.d.js +1 -0
- package/dist/node/operations/summarize.test.d.js +1 -0
- package/dist/node/operations/text.d.js +1 -0
- package/dist/node/operations/text.test.d.js +1 -0
- package/dist/node/operations/zai-learn.test.d.js +1 -0
- package/dist/node/operations/zai-retry.test.d.js +1 -0
- package/dist/node/utils.d.js +0 -0
- package/dist/node/zai.d.js +1 -0
- package/package.json +5 -14
- package/src/adapters/adapter.d.ts +27 -0
- package/src/adapters/botpress-table.d.ts +153 -0
- package/src/adapters/botpress-table.ts +1 -4
- package/src/adapters/memory.d.ts +7 -0
- package/src/index.d.ts +9 -0
- package/src/models.d.ts +351 -0
- package/src/operations/__tests/index.d.ts +20 -0
- package/src/operations/check.d.ts +36 -0
- package/src/operations/check.test.d.ts +1 -0
- package/src/operations/constants.d.ts +2 -0
- package/src/operations/errors.d.ts +5 -0
- package/src/operations/extract.d.ts +20 -0
- package/src/operations/extract.test.d.ts +1 -0
- package/src/operations/filter.d.ts +39 -0
- package/src/operations/filter.test.d.ts +1 -0
- package/src/operations/label.d.ts +79 -0
- package/src/operations/label.test.d.ts +1 -0
- package/src/operations/rewrite.d.ts +34 -0
- package/src/operations/rewrite.test.d.ts +1 -0
- package/src/operations/summarize.d.ts +46 -0
- package/src/operations/summarize.test.d.ts +1 -0
- package/src/operations/text.d.ts +16 -0
- package/src/operations/text.test.d.ts +1 -0
- package/src/operations/zai-learn.test.d.ts +1 -0
- package/src/operations/zai-retry.test.d.ts +1 -0
- package/src/sdk-interfaces/llm/generateContent.d.ts +128 -0
- package/src/sdk-interfaces/llm/listLanguageModels.d.ts +25 -0
- package/src/utils.d.ts +52 -0
- package/src/utils.ts +1 -1
- package/src/zai.d.ts +99 -0
- package/tsconfig.json +2 -2
- package/scripts/update-models.mts +0 -76
- package/scripts/update-types.mts +0 -49
- package/tsup.config.ts +0 -16
- package/vitest.config.ts +0 -9
- package/vitest.setup.ts +0 -24
package/dist/browser/index.js
CHANGED
|
@@ -1537,7 +1537,6 @@
|
|
|
1537
1537
|
__publicField(this, "client");
|
|
1538
1538
|
__publicField(this, "tableName");
|
|
1539
1539
|
__publicField(this, "status");
|
|
1540
|
-
__publicField(this, "errors", []);
|
|
1541
1540
|
props = Props.parse(props);
|
|
1542
1541
|
this.client = props.client;
|
|
1543
1542
|
this.tableName = props.tableName;
|
|
@@ -1615,9 +1614,8 @@
|
|
|
1615
1614
|
isComputeEnabled: false,
|
|
1616
1615
|
tags: __spreadValues(__spreadValues({}, CRITICAL_TAGS), OPTIONAL_TAGS),
|
|
1617
1616
|
schema: TableJsonSchema
|
|
1618
|
-
}).catch((
|
|
1617
|
+
}).catch(() => {
|
|
1619
1618
|
this.status = "error";
|
|
1620
|
-
this.errors = [err.message];
|
|
1621
1619
|
return { table: null, created: false };
|
|
1622
1620
|
});
|
|
1623
1621
|
if (!table) {
|
|
@@ -1652,7 +1650,6 @@
|
|
|
1652
1650
|
}
|
|
1653
1651
|
if (issues.length) {
|
|
1654
1652
|
this.status = "error";
|
|
1655
|
-
this.errors = issues;
|
|
1656
1653
|
}
|
|
1657
1654
|
}
|
|
1658
1655
|
this.status = "initialized";
|