Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/reference/inference/chat-completion-inference.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ However, if you do not plan to use the {infer} APIs to use these models or if yo
[[chat-completion-inference-api-request]]
==== {api-request-title}

`POST /_inference/<inference_id>/_unified`
`POST /_inference/<inference_id>/_stream`

`POST /_inference/chat_completion/<inference_id>/_unified`
`POST /_inference/chat_completion/<inference_id>/_stream`


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

[NOTE]
====
* The `chat_completion` task type is only available within the _unified API and only supports streaming.
* The `chat_completion` task type is only available within the _stream API and only supports streaming.
* The Chat completion {infer} API and the Stream {infer} API differ in their response structure and capabilities.
The Chat completion {infer} API provides more comprehensive customization options through more fields and function calling support.
If you use the `openai` service or the `elastic` service, use the Chat completion {infer} API.
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/inference/elastic-infer-service.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Available task types:

[NOTE]
====
The `chat_completion` task type only supports streaming and only through the `_unified` API.
The `chat_completion` task type only supports streaming and only through the `_stream` API.

include::inference-shared.asciidoc[tag=chat-completion-docs]
====
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/inference/service-openai.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Available task types:

[NOTE]
====
The `chat_completion` task type only supports streaming and only through the `_unified` API.
The `chat_completion` task type only supports streaming and only through the `_stream` API.

include::inference-shared.asciidoc[tag=chat-completion-docs]
====
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/search/search-your-data/cohere-es.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ Rerank the results using the new {infer} endpoint.
[source,py]
--------------------------------------------------
# Pass the query and the search results to the service
response = client.inference.inference(
response = client.inference.rerank(
inference_id="cohere_rerank",
body={
"query": query,
Expand Down