You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4baeda5
Browse filesBrowse the repository at this point in the historyBrowse files
This plugin allows filling fields in multiple selected records based on data from other fields using LLM.
10
10
This also supports vision tasks so you can ask it to e.g. detect dominant color on image or describe what is on the image. Plugin supports classification to enum options automatically.
11
11
12
-
:::warning
13
-
Since version 2.2.0 AI generation is disabled for all users until you set `allowedActions.generate` in the plugin options. After updating from an older version, add it to every `BulkAiFlowPlugin` instance, see [Who can run generation](#who-can-run-generation).
14
-
:::
15
-
16
12
## Installation
17
13
18
14
To install the plugin:
@@ -140,12 +136,6 @@ export const admin = new AdminForth({
attachFiles: async ({ record }: { record:any }) => {
151
141
//diff-add
@@ -209,7 +199,7 @@ export const admin = new AdminForth({
209
199
210
200
## Who can run generation
211
201
212
-
Generation calls a paid AI provider, so it is disabled for all users by default. Set `allowedActions.generate` to choose who can run it. Users who are not allowed don't see the action, and their generation requests are rejected:
202
+
By default generation is allowed to users with the `edit` permission on the resource, because only they can save the generated values. Generation calls a paid AI provider, so you can narrow it down with `allowedActions.generate`. Users who are not allowed don't see the action, and their generation requests are rejected:
213
203
214
204
```ts
215
205
newBulkAiFlowPlugin({
@@ -224,7 +214,7 @@ new BulkAiFlowPlugin({
224
214
}),
225
215
```
226
216
227
-
`generate:true` allows generation to every user who can see the resource. If `allowedActions.generate` is not set, the plugin logs a warning on startup.
217
+
`generate:true` allows generation to every user who can see the resource, `false` disables it for everyone.
228
218
229
219
Saving the generated values also needs the `edit` permission on the resource and, if set, `isAllowedToSave`.
230
220
@@ -240,9 +230,6 @@ import CompletionAdapterOpenAIResponses from '@adminforth/completion-adapter-ope
0 commit comments