Skip to content

Commit 687d74d

Browse files
Update learn/chat/getting_started_with_chat.mdx
Co-authored-by: gui machiavelli <[email protected]>
1 parent a062c13 commit 687d74d

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

learn/chat/getting_started_with_chat.mdx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ curl http://localhost:7700/keys \
3939

4040
Look for the key with "Default Chat API Key" in the description. Use this key when querying the `/chats` endpoint.
4141

42-
### Creating a chat API key for existing instances
42+
### Troubleshooting: Missing default chat API key
4343

44-
If you have an existing Meilisearch instance and don't see a Default Chat API Key, create one manually:
44+
If your instance does not have a Default Chat API Key, create one manually:
4545

4646
```bash
4747
curl \
@@ -51,14 +51,12 @@ curl \
5151
--data-binary '{
5252
"name": "Chat API Key",
5353
"description": "API key for chat completions",
54-
"actions": ["search", "chatCompletions", "documents.get"],
54+
"actions": ["search", "chatCompletions"],
5555
"indexes": ["*"],
5656
"expiresAt": null
5757
}'
5858
```
5959

60-
This creates an API key with `search`, `chatCompletions`, and `documents.get` permissions, which are required for the chat feature to search and retrieve document content.
61-
6260
## Configure your indexes for chat
6361

6462
Each index that you want to be searchable through chat needs specific configuration:

0 commit comments

Comments
 (0)