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/machine-learning/how-to-deploy-models-cohere-command.md
+8-6Lines changed: 8 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -128,7 +128,8 @@ The previously mentioned Cohere models can be consumed using the chat API.
128
128
129
129
## Chat API reference for cohere command models deployed as a service
130
130
131
-
## V1/chat/completions request
131
+
## v1/chat/completions
132
+
### Request
132
133
133
134
```
134
135
POST /v1/chat/completions HTTP/1.1
@@ -137,7 +138,7 @@ The previously mentioned Cohere models can be consumed using the chat API.
137
138
Content-type: application/json
138
139
```
139
140
140
-
### V1/chat/completions request schema
141
+
### v1/chat/completions request schema
141
142
142
143
Cohere Command R and Command R+ accept the following parameters for a `v1/chat/completions` response inference call:
143
144
@@ -183,7 +184,7 @@ A Tool Message supports the following properties:
183
184
184
185
<br/>
185
186
186
-
### V1/chat/completions response schema
187
+
### v1/chat/completions response schema
187
188
188
189
The response payload is a dictionary with the following fields:
189
190
@@ -270,7 +271,8 @@ The `usage` object is a dictionary with the following fields:
270
271
}
271
272
```
272
273
273
-
## V1/chat request
274
+
## v1/chat
275
+
### Request
274
276
275
277
```
276
278
POST /v1/chat HTTP/1.1
@@ -279,7 +281,7 @@ The `usage` object is a dictionary with the following fields:
279
281
Content-type: application/json
280
282
```
281
283
282
-
### V1/chat request schema
284
+
### v1/chat request schema
283
285
284
286
Cohere Command R and Command R+ accept the following parameters for a `v1/chat` response inference call:
285
287
@@ -317,7 +319,7 @@ The `documents` object has the following optional fields:
317
319
|`id`|`string`|`None`|Can be supplied to identify the document in the citations. This field isn't passed to the model. |
318
320
|`_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. |
319
321
320
-
### V1/chat response schema
322
+
### v1/chat response schema
321
323
322
324
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