mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-25 07:37:19 -04:00
(cherry picked from commit 0f58537dc9
)
This commit is contained in:
parent
533d0a8750
commit
b95c59b290
4 changed files with 6 additions and 6 deletions
|
@ -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]
|
||||
|
@ -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.
|
||||
|
|
|
@ -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]
|
||||
====
|
||||
|
|
|
@ -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]
|
||||
====
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue