Skip to content

Commit 5e7e71c

Browse files
committed
Fix HTTP method from PUT to PATCH for chat settings update
1 parent 5307fb9 commit 5e7e71c

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

guides/ai/getting_started_with_chat.mdx

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

4545
```bash openAi
4646
curl \
47-
-X PUT 'http://localhost:7700/chats/my-assistant/settings' \
47+
-X PATCH 'http://localhost:7700/chats/my-assistant/settings' \
4848
-H 'Authorization: Bearer MASTER_KEY' \
4949
-H 'Content-Type: application/json' \
5050
--data-binary '{
@@ -58,7 +58,7 @@ curl \
5858

5959
```bash azureOpenAi
6060
curl \
61-
-X PUT 'http://localhost:7700/chats/my-assistant/settings' \
61+
-X PATCH 'http://localhost:7700/chats/my-assistant/settings' \
6262
-H 'Authorization: Bearer MASTER_KEY' \
6363
-H 'Content-Type: application/json' \
6464
--data-binary '{
@@ -73,7 +73,7 @@ curl \
7373

7474
```bash mistral
7575
curl \
76-
-X PUT 'http://localhost:7700/chats/my-assistant/settings' \
76+
-X PATCH 'http://localhost:7700/chats/my-assistant/settings' \
7777
-H 'Authorization: Bearer MASTER_KEY' \
7878
-H 'Content-Type: application/json' \
7979
--data-binary '{
@@ -87,7 +87,7 @@ curl \
8787

8888
```bash gemini
8989
curl \
90-
-X PUT 'http://localhost:7700/chats/my-assistant/settings' \
90+
-X PATCH 'http://localhost:7700/chats/my-assistant/settings' \
9191
-H 'Authorization: Bearer MASTER_KEY' \
9292
-H 'Content-Type: application/json' \
9393
--data-binary '{
@@ -101,7 +101,7 @@ curl \
101101

102102
```bash vLlm
103103
curl \
104-
-X PUT 'http://localhost:7700/chats/my-assistant/settings' \
104+
-X PATCH 'http://localhost:7700/chats/my-assistant/settings' \
105105
-H 'Authorization: Bearer MASTER_KEY' \
106106
-H 'Content-Type: application/json' \
107107
--data-binary '{

reference/api/chats.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ while (true) {
161161

162162
## Update chat settings
163163

164-
<RouteHighlighter method="PUT" path="/chats/{workspace}/settings" />
164+
<RouteHighlighter method="PATCH" path="/chats/{workspace}/settings" />
165165

166166
Configure the LLM provider and settings for a chat workspace.
167167

@@ -195,7 +195,7 @@ Returns the updated settings object. Note that `apiKey` is write-only and will n
195195

196196
```bash openAi
197197
curl \
198-
-X PUT 'http://localhost:7700/chats/customer-support/settings' \
198+
-X PATCH 'http://localhost:7700/chats/customer-support/settings' \
199199
-H 'Authorization: Bearer MASTER_KEY' \
200200
-H 'Content-Type: application/json' \
201201
--data-binary '{
@@ -209,7 +209,7 @@ curl \
209209

210210
```bash azureOpenAi
211211
curl \
212-
-X PUT 'http://localhost:7700/chats/customer-support/settings' \
212+
-X PATCH 'http://localhost:7700/chats/customer-support/settings' \
213213
-H 'Authorization: Bearer MASTER_KEY' \
214214
-H 'Content-Type: application/json' \
215215
--data-binary '{
@@ -224,7 +224,7 @@ curl \
224224

225225
```bash mistral
226226
curl \
227-
-X PUT 'http://localhost:7700/chats/customer-support/settings' \
227+
-X PATCH 'http://localhost:7700/chats/customer-support/settings' \
228228
-H 'Authorization: Bearer MASTER_KEY' \
229229
-H 'Content-Type: application/json' \
230230
--data-binary '{
@@ -238,7 +238,7 @@ curl \
238238

239239
```bash gemini
240240
curl \
241-
-X PUT 'http://localhost:7700/chats/customer-support/settings' \
241+
-X PATCH 'http://localhost:7700/chats/customer-support/settings' \
242242
-H 'Authorization: Bearer MASTER_KEY' \
243243
-H 'Content-Type: application/json' \
244244
--data-binary '{
@@ -252,7 +252,7 @@ curl \
252252

253253
```bash vLlm
254254
curl \
255-
-X PUT 'http://localhost:7700/chats/customer-support/settings' \
255+
-X PATCH 'http://localhost:7700/chats/customer-support/settings' \
256256
-H 'Authorization: Bearer MASTER_KEY' \
257257
-H 'Content-Type: application/json' \
258258
--data-binary '{

0 commit comments

Comments
 (0)