From a5f90de225c1550f7bffc09ad404597a2fbd30f3 Mon Sep 17 00:00:00 2001 From: ellnix Date: Thu, 16 Jan 2025 15:16:32 +0100 Subject: [PATCH] Use the PATCH /embedders path on update_embedders_1 (#3099) --- .code-samples.meilisearch.yaml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.code-samples.meilisearch.yaml b/.code-samples.meilisearch.yaml index e73686f8c..a5ef4cc88 100644 --- a/.code-samples.meilisearch.yaml +++ b/.code-samples.meilisearch.yaml @@ -1383,16 +1383,14 @@ get_embedders_1: |- -X GET 'http://localhost:7700/indexes/INDEX_NAME/settings/embedders' update_embedders_1: |- curl \ - -X PATCH 'http://localhost:7700/indexes/INDEX_NAME/settings' \ + -X PATCH 'http://localhost:7700/indexes/INDEX_NAME/settings/embedders' \ -H 'Content-Type: application/json' \ --data-binary '{ - "embedders": { - "default": { - "source": "openAi", - "apiKey": "anOpenAiApiKey", - "model": "text-embedding-3-small", - "documentTemplate": "A document titled '{{doc.title}}' whose description starts with {{doc.overview|truncatewords: 20}}" - } + "default": { + "source": "openAi", + "apiKey": "anOpenAiApiKey", + "model": "text-embedding-3-small", + "documentTemplate": "A document titled '{{doc.title}}' whose description starts with {{doc.overview|truncatewords: 20}}" } }' reset_embedders_1: |-