Skip to content

Commit 350817f

Browse files
committed
docs: update docs for the bulk-ai-flow plugin
1 parent 394fffe commit 350817f

File tree

1 file changed

+31
-2
lines changed

1 file changed

+31
-2
lines changed

adminforth/documentation/docs/tutorial/07-Plugins/17-bulk-ai-flow.md

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,36 @@ new BulkAiFlowPlugin({
279279
280280
## Rate Limiting and Best Practices
281281
282-
- Use `rateLimit` for individual image generation operations
283-
- Set `bulkGenerationRateLimit` to prevent API quota exhaustion
282+
- Use `rateLimit` for individual image generation operations and for the bulk image generation
283+
```ts
284+
new BulkAiFlowPlugin({
285+
...
286+
287+
generateImages: {
288+
users_avatar: {
289+
... //image re-generation limits
290+
//diff-add
291+
rateLimit: '1/5m' // one request per 5 minutes
292+
}
293+
},
294+
295+
...
296+
297+
//diff-add
298+
rateLimits: { // bulk generation limits
299+
//diff-add
300+
fillFieldsFromImages: "5/1d", // 5 requests per day
301+
//diff-add
302+
fillPlainFields: "3/1h", // 3 requests per one hour
303+
//diff-add
304+
generateImages: "1/2m", // 2 request per one minute
305+
//diff-add
306+
}
307+
308+
...
309+
310+
})
311+
```
312+
284313
- Consider using lower resolution (`512x512`) for faster generation and lower costs
285314
- Test prompts thoroughly before applying to large datasets

0 commit comments

Comments
 (0)