Skip to content

Commit a00bcb9

Browse files
authored
Merge pull request #36 from devforth/update-completion-adapter-docs
Added adapters installation in docs
2 parents c1e2c3d + 87629af commit a00bcb9

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

adminforth/documentation/docs/tutorial/05-Plugins/04-RichEditor.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,12 @@ If you need multiple fields in one resource which happens rarely, just add multi
9191

9292
## Completion
9393

94+
First, install the completion adapter:
95+
96+
```bash
97+
npm i @adminforth/completion-adapter-open-ai-chat-gpt --save
98+
```
99+
94100
To get completion suggestions for the text in the editor, you can use the `completion` option. This option is an object with the following properties:
95101

96102
```ts title="./resources/apartments.ts"

adminforth/documentation/docs/tutorial/05-Plugins/06-text-complete.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ This plugin allows you to auto-complete text and string fields using OpenAI Chat
66

77
```
88
npm i @adminforth/text-complete --save
9+
npm i @adminforth/completion-adapter-open-ai-chat-gpt --save
910
```
1011

1112
Go to https://platform.openai.com/, open `Dashboard` -> `API keys` -> `Create new secret key`. Paste value in your `.env` file:

adminforth/documentation/docs/tutorial/05-Plugins/09-open-signup.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ And prisma migrate:
5353
npx --yes prisma migrate dev --name add-email-confirmed-to-users
5454
```
5555
56+
Next, install the `@adminforth/email-adapter-aws-ses` package:
57+
58+
```bash
59+
npm i @adminforth/email-adapter-aws-ses --save
60+
```
61+
5662
Also, update the resource configuration in `./resources/users.ts`:
5763
5864
```ts title='./resources/users.ts'

0 commit comments

Comments
 (0)