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: |-