Skip to content

Commit 301cf97

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 3bcb7a4 commit 301cf97

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
@@ -88,7 +88,7 @@ Create a workspace with your LLM provider settings. Here are examples for differ
8888

8989
```bash openAi
9090
curl \
91-
-X PUT 'http://localhost:7700/chats/my-assistant/settings' \
91+
-X PATCH 'http://localhost:7700/chats/my-assistant/settings' \
9292
-H 'Authorization: Bearer MEILISEARCH_KEY' \
9393
-H 'Content-Type: application/json' \
9494
--data-binary '{
@@ -103,7 +103,7 @@ curl \
103103

104104
```bash azureOpenAi
105105
curl \
106-
-X PUT 'http://localhost:7700/chats/my-assistant/settings' \
106+
-X PATCH 'http://localhost:7700/chats/my-assistant/settings' \
107107
-H 'Authorization: Bearer MEILISEARCH_KEY' \
108108
-H 'Content-Type: application/json' \
109109
--data-binary '{
@@ -118,7 +118,7 @@ curl \
118118

119119
```bash mistral
120120
curl \
121-
-X PUT 'http://localhost:7700/chats/my-assistant/settings' \
121+
-X PATCH 'http://localhost:7700/chats/my-assistant/settings' \
122122
-H 'Authorization: Bearer MEILISEARCH_KEY' \
123123
-H 'Content-Type: application/json' \
124124
--data-binary '{
@@ -132,7 +132,7 @@ curl \
132132

133133
```bash gemini
134134
curl \
135-
-X PUT 'http://localhost:7700/chats/my-assistant/settings' \
135+
-X PATCH 'http://localhost:7700/chats/my-assistant/settings' \
136136
-H 'Authorization: Bearer MEILISEARCH_KEY' \
137137
-H 'Content-Type: application/json' \
138138
--data-binary '{
@@ -146,7 +146,7 @@ curl \
146146

147147
```bash vLlm
148148
curl \
149-
-X PUT 'http://localhost:7700/chats/my-assistant/settings' \
149+
-X PATCH 'http://localhost:7700/chats/my-assistant/settings' \
150150
-H 'Authorization: Bearer MEILISEARCH_KEY' \
151151
-H 'Content-Type: application/json' \
152152
--data-binary '{
@@ -367,7 +367,7 @@ except Exception as error:
367367
2. Update with valid API key:
368368

369369
```bash
370-
curl -X PUT http://localhost:7700/chats/my-assistant/settings \
370+
curl -X PATCH http://localhost:7700/chats/my-assistant/settings \
371371
-H "Authorization: Bearer MEILISEARCH_KEY" \
372372
-H "Content-Type: application/json" \
373373
-d '{"apiKey": "your-valid-api-key"}'

0 commit comments

Comments
 (0)