Skip to content

Commit a5f90de

Browse files
authored
Use the PATCH /embedders path on update_embedders_1 (#3099)
1 parent 4e903b2 commit a5f90de

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.code-samples.meilisearch.yaml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1383,16 +1383,14 @@ get_embedders_1: |-
13831383
-X GET 'http://localhost:7700/indexes/INDEX_NAME/settings/embedders'
13841384
update_embedders_1: |-
13851385
curl \
1386-
-X PATCH 'http://localhost:7700/indexes/INDEX_NAME/settings' \
1386+
-X PATCH 'http://localhost:7700/indexes/INDEX_NAME/settings/embedders' \
13871387
-H 'Content-Type: application/json' \
13881388
--data-binary '{
1389-
"embedders": {
1390-
"default": {
1391-
"source": "openAi",
1392-
"apiKey": "anOpenAiApiKey",
1393-
"model": "text-embedding-3-small",
1394-
"documentTemplate": "A document titled '{{doc.title}}' whose description starts with {{doc.overview|truncatewords: 20}}"
1395-
}
1389+
"default": {
1390+
"source": "openAi",
1391+
"apiKey": "anOpenAiApiKey",
1392+
"model": "text-embedding-3-small",
1393+
"documentTemplate": "A document titled '{{doc.title}}' whose description starts with {{doc.overview|truncatewords: 20}}"
13961394
}
13971395
}'
13981396
reset_embedders_1: |-

0 commit comments

Comments
 (0)