Skip to content

Commit c3790e5

Browse files
committed
Fix HTTP method in chat workspace configuration from PUT to PATCH
The chat completions workspace configuration endpoint uses PATCH, not PUT. This corrects all instances in the getting started guide.
1 parent 4375cf3 commit c3790e5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

learn/chat/getting_started_with_chat.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Create a workspace with your LLM provider settings. Here are examples for differ
7070

7171
```bash openAi
7272
curl \
73-
-X PUT 'http://localhost:7700/chats/my-assistant/settings' \
73+
-X PATCH 'http://localhost:7700/chats/my-assistant/settings' \
7474
-H 'Authorization: Bearer MEILISEARCH_KEY' \
7575
-H 'Content-Type: application/json' \
7676
--data-binary '{
@@ -85,7 +85,7 @@ curl \
8585

8686
```bash azureOpenAi
8787
curl \
88-
-X PUT 'http://localhost:7700/chats/my-assistant/settings' \
88+
-X PATCH 'http://localhost:7700/chats/my-assistant/settings' \
8989
-H 'Authorization: Bearer MEILISEARCH_KEY' \
9090
-H 'Content-Type: application/json' \
9191
--data-binary '{
@@ -100,7 +100,7 @@ curl \
100100

101101
```bash mistral
102102
curl \
103-
-X PUT 'http://localhost:7700/chats/my-assistant/settings' \
103+
-X PATCH 'http://localhost:7700/chats/my-assistant/settings' \
104104
-H 'Authorization: Bearer MEILISEARCH_KEY' \
105105
-H 'Content-Type: application/json' \
106106
--data-binary '{
@@ -114,7 +114,7 @@ curl \
114114

115115
```bash gemini
116116
curl \
117-
-X PUT 'http://localhost:7700/chats/my-assistant/settings' \
117+
-X PATCH 'http://localhost:7700/chats/my-assistant/settings' \
118118
-H 'Authorization: Bearer MEILISEARCH_KEY' \
119119
-H 'Content-Type: application/json' \
120120
--data-binary '{
@@ -128,7 +128,7 @@ curl \
128128

129129
```bash vLlm
130130
curl \
131-
-X PUT 'http://localhost:7700/chats/my-assistant/settings' \
131+
-X PATCH 'http://localhost:7700/chats/my-assistant/settings' \
132132
-H 'Authorization: Bearer MEILISEARCH_KEY' \
133133
-H 'Content-Type: application/json' \
134134
--data-binary '{
@@ -349,7 +349,7 @@ except Exception as error:
349349
2. Update with valid API key:
350350

351351
```bash
352-
curl -X PUT http://localhost:7700/chats/my-assistant/settings \
352+
curl -X PATCH http://localhost:7700/chats/my-assistant/settings \
353353
-H "Authorization: Bearer MEILISEARCH_KEY" \
354354
-H "Content-Type: application/json" \
355355
-d '{"apiKey": "your-valid-api-key"}'

0 commit comments

Comments
 (0)