@adminforth/bulk-ai-flow 1.23.18 → 1.24.0
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 +27 -3
- package/dist/index.js +8 -2
- package/index.ts +8 -2
- package/package.json +11 -7
package/README.md
CHANGED
|
@@ -1,7 +1,31 @@
|
|
|
1
1
|
# AdminForth Bulk AI Flow Plugin
|
|
2
2
|
|
|
3
|
-
<img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="License: MIT" /> <img src="https://woodpecker.devforth.io/api/badges/3848/status.svg" alt="Build Status" /> <a href="https://www.npmjs.com/package/@adminforth/bulk-ai-flow"
|
|
3
|
+
<img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="License: MIT" /> <img src="https://woodpecker.devforth.io/api/badges/3848/status.svg" alt="Build Status" /> <a href="https://www.npmjs.com/package/@adminforth/bulk-ai-flow"><img src="https://img.shields.io/npm/dm/@adminforth/bulk-ai-flow" alt="npm downloads" /></a> <a href="https://www.npmjs.com/package/@adminforth/bulk-ai-flow"><img src="https://img.shields.io/npm/v/@adminforth/bulk-ai-flow" alt="npm version" /></a>
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
[](https://tluma.ai/ask-ai/devforth/adminforth)
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Allows you to generate record data and images in bulk using AI flows in AdminForth.
|
|
8
|
+
|
|
9
|
+
## Features
|
|
10
|
+
|
|
11
|
+
- Generate record data in bulk with AI-powered flows.
|
|
12
|
+
- Produce content and images for multiple entries faster.
|
|
13
|
+
- Reduce repetitive manual work in content operations.
|
|
14
|
+
- Plug AI generation into AdminForth resource workflows.
|
|
15
|
+
|
|
16
|
+
## Documentation
|
|
17
|
+
|
|
18
|
+
Full setup and configuration guide:
|
|
19
|
+
|
|
20
|
+
[AdminForth Bulk AI Flow Documentation](https://adminforth.dev/docs/tutorial/Plugins/bulk-ai-flow/)
|
|
21
|
+
|
|
22
|
+
## About AdminForth
|
|
23
|
+
|
|
24
|
+
AdminForth is an open-source, agent-first admin framework for building robust admin panels and back-office applications faster.
|
|
25
|
+
|
|
26
|
+
## Related links
|
|
27
|
+
|
|
28
|
+
- [AdminForth website](https://adminforth.dev)
|
|
29
|
+
- [npm package](https://www.npmjs.com/package/@adminforth/bulk-ai-flow)
|
|
30
|
+
- [More AdminForth plugins](https://adminforth.dev/docs/tutorial/ListOfPlugins/)
|
|
31
|
+
- [Built by DevForth](https://devforth.io)
|
package/dist/index.js
CHANGED
|
@@ -226,7 +226,10 @@ export default class BulkAiFlowPlugin extends AdminForthPlugin {
|
|
|
226
226
|
const numberOfTokens = this.options.fillPlainFieldsMaxTokens ? this.options.fillPlainFieldsMaxTokens : 1000;
|
|
227
227
|
let resp;
|
|
228
228
|
try {
|
|
229
|
-
const { content: chatResponse, error: topLevelError } = yield this.options.textCompleteAdapter.complete(
|
|
229
|
+
const { content: chatResponse, error: topLevelError } = yield this.options.textCompleteAdapter.complete({
|
|
230
|
+
content: prompt,
|
|
231
|
+
maxTokens: numberOfTokens,
|
|
232
|
+
});
|
|
230
233
|
// resp = (chatResponse as any).response;
|
|
231
234
|
if (topLevelError || (resp === null || resp === void 0 ? void 0 : resp.error)) {
|
|
232
235
|
isError = true;
|
|
@@ -502,7 +505,10 @@ export default class BulkAiFlowPlugin extends AdminForthPlugin {
|
|
|
502
505
|
const numberOfTokens = this.options.fillPlainFieldsMaxTokens ? this.options.fillPlainFieldsMaxTokens : 1000;
|
|
503
506
|
let resp;
|
|
504
507
|
try {
|
|
505
|
-
const { content: chatResponse, error: topLevelError } = yield this.options.textCompleteAdapter.complete(
|
|
508
|
+
const { content: chatResponse, error: topLevelError } = yield this.options.textCompleteAdapter.complete({
|
|
509
|
+
content: finalPrompt,
|
|
510
|
+
maxTokens: numberOfTokens,
|
|
511
|
+
});
|
|
506
512
|
if (topLevelError) {
|
|
507
513
|
// return { ok: false, error: `ERROR: ${JSON.stringify(topLevelError)}` };
|
|
508
514
|
jobs.set(jobId, { status: 'failed', error: `ERROR: ${JSON.stringify(topLevelError)}` });
|
package/index.ts
CHANGED
|
@@ -226,7 +226,10 @@ export default class BulkAiFlowPlugin extends AdminForthPlugin {
|
|
|
226
226
|
const numberOfTokens = this.options.fillPlainFieldsMaxTokens ? this.options.fillPlainFieldsMaxTokens : 1000;
|
|
227
227
|
let resp: any;
|
|
228
228
|
try {
|
|
229
|
-
const { content: chatResponse, error: topLevelError } = await this.options.textCompleteAdapter.complete(
|
|
229
|
+
const { content: chatResponse, error: topLevelError } = await this.options.textCompleteAdapter.complete({
|
|
230
|
+
content: prompt,
|
|
231
|
+
maxTokens: numberOfTokens,
|
|
232
|
+
});
|
|
230
233
|
// resp = (chatResponse as any).response;
|
|
231
234
|
if (topLevelError || resp?.error) {
|
|
232
235
|
isError = true;
|
|
@@ -495,7 +498,10 @@ export default class BulkAiFlowPlugin extends AdminForthPlugin {
|
|
|
495
498
|
const numberOfTokens = this.options.fillPlainFieldsMaxTokens ? this.options.fillPlainFieldsMaxTokens : 1000;
|
|
496
499
|
let resp;
|
|
497
500
|
try {
|
|
498
|
-
const { content: chatResponse, error: topLevelError } = await this.options.textCompleteAdapter.complete(
|
|
501
|
+
const { content: chatResponse, error: topLevelError } = await this.options.textCompleteAdapter.complete({
|
|
502
|
+
content: finalPrompt,
|
|
503
|
+
maxTokens: numberOfTokens,
|
|
504
|
+
});
|
|
499
505
|
if (topLevelError) {
|
|
500
506
|
// return { ok: false, error: `ERROR: ${JSON.stringify(topLevelError)}` };
|
|
501
507
|
jobs.set(jobId, { status: 'failed', error: `ERROR: ${JSON.stringify(topLevelError)}` });
|
package/package.json
CHANGED
|
@@ -1,27 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adminforth/bulk-ai-flow",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.24.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"types": "dist/index.d.ts",
|
|
9
9
|
"type": "module",
|
|
10
|
+
"homepage": "https://adminforth.dev/docs/tutorial/Plugins/bulk-ai-flow/",
|
|
10
11
|
"scripts": {
|
|
11
12
|
"build": "tsc && rsync -av --exclude 'node_modules' custom dist/"
|
|
12
13
|
},
|
|
13
14
|
"keywords": [
|
|
14
15
|
"adminforth",
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
16
|
+
"ai-workflows",
|
|
17
|
+
"batch-generation",
|
|
18
|
+
"record-enrichment",
|
|
19
|
+
"prompt-templates",
|
|
20
|
+
"image-processing",
|
|
21
|
+
"field-generation"
|
|
18
22
|
],
|
|
19
23
|
"author": "",
|
|
20
24
|
"license": "MIT",
|
|
21
|
-
"description": "",
|
|
25
|
+
"description": "Bulk AI workflow plugin for AdminForth for batch field generation and image processing",
|
|
22
26
|
"devDependencies": {
|
|
23
27
|
"@types/node": "latest",
|
|
24
|
-
"adminforth": "^2.
|
|
28
|
+
"adminforth": "^2.42.0",
|
|
25
29
|
"semantic-release": "^24.2.1",
|
|
26
30
|
"semantic-release-slack-bot": "^4.0.2",
|
|
27
31
|
"typescript": "^5.7.3"
|
|
@@ -31,7 +35,7 @@
|
|
|
31
35
|
"handlebars": "^4.7.8"
|
|
32
36
|
},
|
|
33
37
|
"peerDependencies": {
|
|
34
|
-
"adminforth": "^2.
|
|
38
|
+
"adminforth": "^2.42.0"
|
|
35
39
|
},
|
|
36
40
|
"release": {
|
|
37
41
|
"plugins": [
|