Skip to content

Commit b95c59b

Browse files
authored
[DOCS] Remove references to the _unified inference API (#124157) (#124254)
(cherry picked from commit 0f58537)
1 parent 533d0a8 commit b95c59b

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

docs/reference/inference/chat-completion-inference.asciidoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ However, if you do not plan to use the {infer} APIs to use these models or if yo
1313
[[chat-completion-inference-api-request]]
1414
==== {api-request-title}
1515

16-
`POST /_inference/<inference_id>/_unified`
16+
`POST /_inference/<inference_id>/_stream`
1717

18-
`POST /_inference/chat_completion/<inference_id>/_unified`
18+
`POST /_inference/chat_completion/<inference_id>/_stream`
1919

2020

2121
[discrete]
@@ -37,7 +37,7 @@ It only works with the `chat_completion` task type for `openai` and `elastic` {i
3737

3838
[NOTE]
3939
====
40-
* The `chat_completion` task type is only available within the _unified API and only supports streaming.
40+
* The `chat_completion` task type is only available within the _stream API and only supports streaming.
4141
* The Chat completion {infer} API and the Stream {infer} API differ in their response structure and capabilities.
4242
The Chat completion {infer} API provides more comprehensive customization options through more fields and function calling support.
4343
If you use the `openai` service or the `elastic` service, use the Chat completion {infer} API.

docs/reference/inference/elastic-infer-service.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Available task types:
3939

4040
[NOTE]
4141
====
42-
The `chat_completion` task type only supports streaming and only through the `_unified` API.
42+
The `chat_completion` task type only supports streaming and only through the `_stream` API.
4343
4444
include::inference-shared.asciidoc[tag=chat-completion-docs]
4545
====

docs/reference/inference/service-openai.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Available task types:
3838

3939
[NOTE]
4040
====
41-
The `chat_completion` task type only supports streaming and only through the `_unified` API.
41+
The `chat_completion` task type only supports streaming and only through the `_stream` API.
4242
4343
include::inference-shared.asciidoc[tag=chat-completion-docs]
4444
====

docs/reference/search/search-your-data/cohere-es.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ Rerank the results using the new {infer} endpoint.
297297
[source,py]
298298
--------------------------------------------------
299299
# Pass the query and the search results to the service
300-
response = client.inference.inference(
300+
response = client.inference.rerank(
301301
inference_id="cohere_rerank",
302302
body={
303303
"query": query,

0 commit comments

Comments
 (0)