Skip to content

Commit 4785671

Browse files
Update how-to-deploy-models-cohere-command.md
1 parent 124f150 commit 4785671

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

articles/machine-learning/how-to-deploy-models-cohere-command.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ The previously mentioned Cohere models can be consumed using the chat API.
128128

129129
## Chat API reference for cohere command models deployed as a service
130130

131-
## V1/chat/completions request
131+
## v1/chat/completions
132+
### Request
132133

133134
```
134135
POST /v1/chat/completions HTTP/1.1
@@ -137,7 +138,7 @@ The previously mentioned Cohere models can be consumed using the chat API.
137138
Content-type: application/json
138139
```
139140

140-
### V1/chat/completions request schema
141+
### v1/chat/completions request schema
141142

142143
Cohere Command R and Command R+ accept the following parameters for a `v1/chat/completions` response inference call:
143144

@@ -183,7 +184,7 @@ A Tool Message supports the following properties:
183184

184185
<br/>
185186

186-
### V1/chat/completions response schema
187+
### v1/chat/completions response schema
187188

188189
The response payload is a dictionary with the following fields:
189190

@@ -270,7 +271,8 @@ The `usage` object is a dictionary with the following fields:
270271
}
271272
```
272273

273-
## V1/chat request
274+
## v1/chat
275+
### Request
274276

275277
```
276278
POST /v1/chat HTTP/1.1
@@ -279,7 +281,7 @@ The `usage` object is a dictionary with the following fields:
279281
Content-type: application/json
280282
```
281283

282-
### V1/chat request schema
284+
### v1/chat request schema
283285

284286
Cohere Command R and Command R+ accept the following parameters for a `v1/chat` response inference call:
285287

@@ -317,7 +319,7 @@ The `documents` object has the following optional fields:
317319
|`id` |`string` |`None` |Can be supplied to identify the document in the citations. This field isn't passed to the model. |
318320
|`_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. |
319321

320-
### V1/chat response schema
322+
### v1/chat response schema
321323

322324
Response fields are fully documented on [Cohere's Chat API reference](https://docs.cohere.com/reference/chat). The response object always contains:
323325

0 commit comments

Comments
 (0)