Skip to content

Commit a65ef04

Browse files
committed
docs: fi upload plugin docs
1 parent 7828be7 commit a65ef04

File tree

1 file changed

+10
-5
lines changed
  • adminforth/documentation/docs/tutorial/05-Plugins

1 file changed

+10
-5
lines changed

adminforth/documentation/docs/tutorial/05-Plugins/05-upload.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,17 @@ Also you will have to enable static website hosting in your bucket settings and
252252
253253
## Image generation
254254
255-
Upload plugin supports AI generation for images
255+
Upload plugin supports AI generation for images. Yo use it you need to install image generation adapter.
256+
For example for OpenAI models like `gpt-image-1` (or old `DALL-E` models):
257+
258+
```bash
259+
npm i @adminforth/image-generation-adapter-openai
260+
```
261+
262+
256263
257264
```ts title="./index.ts"
265+
import ImageGenerationAdapterOpenAI from '@adminforth/image-generation-adapter-openai';
258266

259267
new UploadPlugin({
260268
...
@@ -300,16 +308,13 @@ new ImageGenerationAdapterOpenAI({
300308
```
301309
302310
303-
304-
305-
## Generation from existing image(s)
311+
## Images editing or post-processing
306312
307313
You can not only generate images from text, but also edit, post-process or improve existing images. E.g. remove texts, add objects, change colors, etc.
308314
309315
Create a new column `apartment_source` in `apartments` table, and put another instance of `UploadPlugin` in the same resource configuration.
310316
311317
312-
313318
Now tweak the current UploadPlugin configuration in a next way:
314319
315320

0 commit comments

Comments
 (0)