You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/ai-studio/how-to/deploy-models-cohere-command.md
+8-7Lines changed: 8 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -133,16 +133,16 @@ These models can be consumed using the chat API.
133
133
134
134
## Chat API reference for Cohere models deployed as a service
135
135
136
-
## v1/chat/completions Request
137
-
136
+
## v1/chat/completions
137
+
### Request
138
138
```
139
139
POST /v1/chat/completions HTTP/1.1
140
140
Host: <DEPLOYMENT_URI>
141
141
Authorization: Bearer <TOKEN>
142
142
Content-type: application/json
143
143
```
144
144
145
-
### V1/chat/completions request schema
145
+
### v1/chat/completions request schema
146
146
147
147
Cohere Command R and Command R+ accept the following parameters for a `v1/chat/completions` response inference call:
148
148
@@ -188,7 +188,7 @@ A Tool Message supports the following properties:
188
188
189
189
<br/>
190
190
191
-
### V1/chat/completions response schema
191
+
### v1/chat/completions response schema
192
192
193
193
The response payload is a dictionary with the following fields:
194
194
@@ -275,7 +275,8 @@ The `usage` object is a dictionary with the following fields:
275
275
}
276
276
```
277
277
278
-
## V1/chat request
278
+
## v1/chat
279
+
## Request
279
280
280
281
```
281
282
POST /v1/chat HTTP/1.1
@@ -284,7 +285,7 @@ The `usage` object is a dictionary with the following fields:
284
285
Content-type: application/json
285
286
```
286
287
287
-
### V1/chat request schema
288
+
### v1/chat request schema
288
289
289
290
Cohere Command R and Command R+ accept the following parameters for a `v1/chat` response inference call:
290
291
@@ -322,7 +323,7 @@ The `documents` object has the following optional fields:
322
323
|`id`|`string`|`None`|Can be supplied to identify the document in the citations. This field isn't passed to the model. |
323
324
|`_excludes`|`array of strings`|`None`| Can be optionally supplied to omit some key-value pairs from being shown to the model. The omitted fields still show up in the citation object. The `_excludes` field isn't passed to the model. |
324
325
325
-
### V1/chat response schema
326
+
### v1/chat response schema
326
327
327
328
Response fields are fully documented on [Cohere's Chat API reference](https://docs.cohere.com/reference/chat). The response object always contains:
0 commit comments