Skip to content
Open
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
954 changes: 859 additions & 95 deletions docs/examples/languageExamples.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ description: >
# type: request
value:
template:
settings:
number_of_shards: 1
aliases:
alias1: {}
alias2:
filter:
term:
user.id: kimchy
routing: shard-1
'{index}-alias': {}
settings:
number_of_shards: 1
aliases:
alias1: {}
alias2:
filter:
term:
user.id: kimchy
routing: shard-1
'{index}-alias': {}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
description:
Run `PUT _inference/chat-completion/ai21-chat-completion` to create a AI21 inference endpoint that performs a
`chat_completion` task.
method_request: 'PUT _inference/chat-completion/ai21-chat-completion'
method_request: 'PUT _inference/chat_completion/ai21-chat-completion'
# type: "request"
value: |-
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
summary: A chat_completion task for Google Model Garden Meta shared endpoint with single streaming URL provided
description: Run `PUT _inference/chat_completion/google_model_garden_meta_chat_completion` to create an inference endpoint to perform a `chat_completion` task using Meta's model hosted on Google Model Garden shared endpoint with single streaming URL provided. See the endpoint's `Sample request` page for the variable values used in the URL.
description:
Run `PUT _inference/chat_completion/google_model_garden_meta_chat_completion` to create an inference endpoint to
perform a `chat_completion` task using Meta's model hosted on Google Model Garden shared endpoint with single streaming URL
provided. See the endpoint's `Sample request` page for the variable values used in the URL.
method_request: 'PUT _inference/chat_completion/google_model_garden_meta_chat_completion'
# type: "request"
value: |-
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
summary: A completion task for Google Model Garden Hugging Face dedicated endpoint with single URL provided for both streaming and non-streaming tasks
description: Run `PUT _inference/completion/google_model_garden_hugging_face_completion` to create an inference endpoint to perform a `completion` task using Hugging Face's model hosted on Google Model Garden dedicated endpoint with single URL provided for both streaming and non-streaming tasks. See the endpoint's `Sample request` page for the variable values used in the URL.
summary:
A completion task for Google Model Garden Hugging Face dedicated endpoint with single URL provided for both streaming and
non-streaming tasks
description:
Run `PUT _inference/completion/google_model_garden_hugging_face_completion` to create an inference endpoint to perform
a `completion` task using Hugging Face's model hosted on Google Model Garden dedicated endpoint with single URL provided for both
streaming and non-streaming tasks. See the endpoint's `Sample request` page for the variable values used in the URL.
method_request: 'PUT _inference/completion/google_model_garden_hugging_face_completion'
# type: "request"
value: |-
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
summary: A chat_completion task for Google Model Garden Hugging Face dedicated endpoint with single streaming URL provided
description: Run `PUT _inference/chat_completion/google_model_garden_hugging_face_chat_completion` to create an inference endpoint to perform a `chat_completion` task using Hugging Face's model hosted on Google Model Garden dedicated endpoint with single streaming URL provided. See the endpoint's `Sample request` page for the variable values used in the URL.
description:
Run `PUT _inference/chat_completion/google_model_garden_hugging_face_chat_completion` to create an inference endpoint
to perform a `chat_completion` task using Hugging Face's model hosted on Google Model Garden dedicated endpoint with single
streaming URL provided. See the endpoint's `Sample request` page for the variable values used in the URL.
method_request: 'PUT _inference/chat_completion/google_model_garden_hugging_face_chat_completion'
# type: "request"
value: |-
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
summary: A completion task for Google Model Garden Hugging Face shared endpoint with single URL provided for both streaming and non-streaming tasks
description: Run `PUT _inference/completion/google_model_garden_hugging_face_completion` to create an inference endpoint to perform a `completion` task using Hugging Face's model hosted on Google Model Garden shared endpoint with single URL provided for both streaming and non-streaming tasks. See the endpoint's `Sample request` page for the variable values used in the URL.
summary:
A completion task for Google Model Garden Hugging Face shared endpoint with single URL provided for both streaming and
non-streaming tasks
description:
Run `PUT _inference/completion/google_model_garden_hugging_face_completion` to create an inference endpoint to perform
a `completion` task using Hugging Face's model hosted on Google Model Garden shared endpoint with single URL provided for both
streaming and non-streaming tasks. See the endpoint's `Sample request` page for the variable values used in the URL.
method_request: 'PUT _inference/completion/google_model_garden_hugging_face_completion'
# type: "request"
value: |-
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
summary: A chat_completion task for Google Model Garden Hugging Face shared endpoint with single streaming URL provided
description: Run `PUT _inference/chat_completion/google_model_garden_hugging_face_chat_completion` to create an inference endpoint to perform a `chat_completion` task using Hugging Face's model hosted on Google Model Garden shared endpoint with single streaming URL provided. See the endpoint's `Sample request` page for the variable values used in the URL.
description:
Run `PUT _inference/chat_completion/google_model_garden_hugging_face_chat_completion` to create an inference endpoint
to perform a `chat_completion` task using Hugging Face's model hosted on Google Model Garden shared endpoint with single streaming
URL provided. See the endpoint's `Sample request` page for the variable values used in the URL.
method_request: 'PUT _inference/chat_completion/google_model_garden_hugging_face_chat_completion'
# type: "request"
value: |-
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
summary: A completion task for Google Model Garden Mistral serverless endpoint with separate URLs for streaming and non-streaming tasks
description: Run `PUT _inference/completion/google_model_garden_mistral_completion` to create an inference endpoint to perform a `completion` task using Mistral's serverless model hosted on Google Model Garden with separate URLs for streaming and non-streaming tasks. See the Mistral model documentation for instructions on how to construct URLs.
description:
Run `PUT _inference/completion/google_model_garden_mistral_completion` to create an inference endpoint to perform a
`completion` task using Mistral's serverless model hosted on Google Model Garden with separate URLs for streaming and
non-streaming tasks. See the Mistral model documentation for instructions on how to construct URLs.
method_request: 'PUT _inference/completion/google_model_garden_mistral_completion'
# type: "request"
value: |-
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
summary: A chat_completion task for Google Model Garden Mistral serverless endpoint with single streaming URL provided
description: Run `PUT _inference/chat_completion/google_model_garden_mistral_chat_completion` to create an inference endpoint to perform a `chat_completion` task using Mistral's serverless model hosted on Google Model Garden with single streaming URL provided. See the Mistral model documentation for instructions on how to construct the URL.
description:
Run `PUT _inference/chat_completion/google_model_garden_mistral_chat_completion` to create an inference endpoint to
perform a `chat_completion` task using Mistral's serverless model hosted on Google Model Garden with single streaming URL
provided. See the Mistral model documentation for instructions on how to construct the URL.
method_request: 'PUT _inference/chat_completion/google_model_garden_mistral_chat_completion'
# type: "request"
value: |-
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
summary: A completion task for Google Model Garden Mistral dedicated endpoint with single URL provided for both streaming and non-streaming tasks
description: Run `PUT _inference/completion/google_model_garden_mistral_completion` to create an inference endpoint to perform a `completion` task using Mistral's model hosted on Google Model Garden dedicated endpoint with single URL provided for both streaming and non-streaming tasks. See the endpoint's `Sample request` page for the variable values used in the URL.
summary:
A completion task for Google Model Garden Mistral dedicated endpoint with single URL provided for both streaming and
non-streaming tasks
description:
Run `PUT _inference/completion/google_model_garden_mistral_completion` to create an inference endpoint to perform a
`completion` task using Mistral's model hosted on Google Model Garden dedicated endpoint with single URL provided for both
streaming and non-streaming tasks. See the endpoint's `Sample request` page for the variable values used in the URL.
method_request: 'PUT _inference/completion/google_model_garden_mistral_completion'
# type: "request"
value: |-
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
summary: A chat_completion task for Google Model Garden Mistral dedicated endpoint with single streaming URL provided
description: Run `PUT _inference/chat_completion/google_model_garden_mistral_chat_completion` to create an inference endpoint to perform a `chat_completion` task using Mistral's model hosted on Google Model Garden dedicated endpoint with single streaming URL provided. See the endpoint's `Sample request` page for the variable values used in the URL.
description:
Run `PUT _inference/chat_completion/google_model_garden_mistral_chat_completion` to create an inference endpoint to
perform a `chat_completion` task using Mistral's model hosted on Google Model Garden dedicated endpoint with single streaming URL
provided. See the endpoint's `Sample request` page for the variable values used in the URL.
method_request: 'PUT _inference/chat_completion/google_model_garden_mistral_chat_completion'
# type: "request"
value: |-
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
summary: A completion task for Google Model Garden Mistral shared endpoint with single URL provided for both streaming and non-streaming tasks
description: Run `PUT _inference/completion/google_model_garden_mistral_completion` to create an inference endpoint to perform a `completion` task using Mistral's model hosted on Google Model Garden shared endpoint with single URL provided for both streaming and non-streaming tasks. See the endpoint's `Sample request` page for the variable values used in the URL.
summary:
A completion task for Google Model Garden Mistral shared endpoint with single URL provided for both streaming and
non-streaming tasks
description:
Run `PUT _inference/completion/google_model_garden_mistral_completion` to create an inference endpoint to perform a
`completion` task using Mistral's model hosted on Google Model Garden shared endpoint with single URL provided for both streaming
and non-streaming tasks. See the endpoint's `Sample request` page for the variable values used in the URL.
method_request: 'PUT _inference/completion/google_model_garden_mistral_completion'
# type: "request"
value: |-
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
summary: A chat_completion task for Google Model Garden Mistral shared endpoint with single streaming URL provided
description: Run `PUT _inference/chat_completion/google_model_garden_mistral_chat_completion` to create an inference endpoint to perform a `chat_completion` task using Mistral's model hosted on Google Model Garden shared endpoint with single streaming URL provided. See the endpoint's `Sample request` page for the variable values used in the URL.
description:
Run `PUT _inference/chat_completion/google_model_garden_mistral_chat_completion` to create an inference endpoint to
perform a `chat_completion` task using Mistral's model hosted on Google Model Garden shared endpoint with single streaming URL
provided. See the endpoint's `Sample request` page for the variable values used in the URL.
method_request: 'PUT _inference/chat_completion/google_model_garden_mistral_chat_completion'
# type: "request"
value: |-
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
summary: A completion task for Google Model Garden AI21 serverless endpoint with separate URLs for streaming and non-streaming tasks
description: Run `PUT _inference/completion/google_model_garden_ai21_completion` to create an inference endpoint to perform a `completion` task using AI21's model hosted on Google Model Garden serverless endpoint with separate URLs for streaming and non-streaming tasks. See the AI21 model documentation for instructions on how to construct URLs.
description:
Run `PUT _inference/completion/google_model_garden_ai21_completion` to create an inference endpoint to perform a
`completion` task using AI21's model hosted on Google Model Garden serverless endpoint with separate URLs for streaming and
non-streaming tasks. See the AI21 model documentation for instructions on how to construct URLs.
method_request: 'PUT _inference/completion/google_model_garden_ai21_completion'
# type: "request"
value: |-
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
summary: A chat_completion task for Google Model Garden AI21 serverless endpoint with single streaming URL provided
description: Run `PUT _inference/chat_completion/google_model_garden_ai21_chat_completion` to create an inference endpoint to perform a `chat_completion` task using AI21's model hosted on Google Model Garden serverless endpoint with single streaming URL provided. See the AI21 model documentation for instructions on how to construct URLs.
description:
Run `PUT _inference/chat_completion/google_model_garden_ai21_chat_completion` to create an inference endpoint to
perform a `chat_completion` task using AI21's model hosted on Google Model Garden serverless endpoint with single streaming URL
provided. See the AI21 model documentation for instructions on how to construct URLs.
method_request: 'PUT _inference/chat_completion/google_model_garden_ai21_chat_completion'
# type: "request"
value: |-
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
summary: A completion task for Google Model Garden Anthropic serverless endpoint with separate URLs for streaming and non-streaming tasks
description: Run `PUT _inference/completion/google_model_garden_anthropic_completion` to create an inference endpoint to perform a `completion` task using Anthropic's serverless model hosted on Google Model Garden with separate URLs for streaming and non-streaming tasks. See the Anthropic model documentation for instructions on how to construct URLs.
description:
Run `PUT _inference/completion/google_model_garden_anthropic_completion` to create an inference endpoint to perform a
`completion` task using Anthropic's serverless model hosted on Google Model Garden with separate URLs for streaming and
non-streaming tasks. See the Anthropic model documentation for instructions on how to construct URLs.
method_request: 'PUT _inference/completion/google_model_garden_anthropic_completion'
# type: "request"
value: |-
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
summary: A chat_completion task for Google Model Garden Anthropic serverless endpoint with single streaming URL provided
description: Run `PUT _inference/chat_completion/google_model_garden_anthropic_chat_completion` to create an inference endpoint to perform a `chat_completion` task using Anthropic's serverless model hosted on Google Model Garden with single streaming URL provided. See the Anthropic model documentation for instructions on how to construct the URL.
description:
Run `PUT _inference/chat_completion/google_model_garden_anthropic_chat_completion` to create an inference endpoint to
perform a `chat_completion` task using Anthropic's serverless model hosted on Google Model Garden with single streaming URL
provided. See the Anthropic model documentation for instructions on how to construct the URL.
method_request: 'PUT _inference/chat_completion/google_model_garden_anthropic_chat_completion'
# type: "request"
value: |-
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
summary: A completion task for Google Model Garden Meta serverless endpoint with single URL provided for both streaming and non-streaming tasks
description: Run `PUT _inference/completion/google_model_garden_meta_completion` to create an inference endpoint to perform a `completion` task using Meta's serverless model hosted on Google Model Garden with single URL provided for both streaming and non-streaming tasks. See the Meta model documentation for instructions on how to construct the URL.
summary:
A completion task for Google Model Garden Meta serverless endpoint with single URL provided for both streaming and
non-streaming tasks
description:
Run `PUT _inference/completion/google_model_garden_meta_completion` to create an inference endpoint to perform a
`completion` task using Meta's serverless model hosted on Google Model Garden with single URL provided for both streaming and
non-streaming tasks. See the Meta model documentation for instructions on how to construct the URL.
method_request: 'PUT _inference/completion/google_model_garden_meta_completion'
# type: "request"
value: |-
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
summary: A chat_completion task for Google Model Garden Meta serverless endpoint with single streaming URL provided
description: Run `PUT _inference/chat_completion/google_model_garden_meta_chat_completion` to create an inference endpoint to perform a `chat_completion` task using Meta's serverless model hosted on Google Model Garden with single streaming URL provided. See the Meta model documentation for instructions on how to construct the URL.
description:
Run `PUT _inference/chat_completion/google_model_garden_meta_chat_completion` to create an inference endpoint to
perform a `chat_completion` task using Meta's serverless model hosted on Google Model Garden with single streaming URL provided.
See the Meta model documentation for instructions on how to construct the URL.
method_request: 'PUT _inference/chat_completion/google_model_garden_meta_chat_completion'
# type: "request"
value: |-
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
summary: A completion task for Google Model Garden Meta dedicated endpoint with single URL provided for both streaming and non-streaming tasks
description: Run `PUT _inference/completion/google_model_garden_meta_completion` to create an inference endpoint to perform a `completion` task using Meta's model hosted on Google Model Garden dedicated endpoint with single URL provided for both streaming and non-streaming tasks. See the endpoint's `Sample request` page for the variable values used in the URL.
summary:
A completion task for Google Model Garden Meta dedicated endpoint with single URL provided for both streaming and
non-streaming tasks
description:
Run `PUT _inference/completion/google_model_garden_meta_completion` to create an inference endpoint to perform a
`completion` task using Meta's model hosted on Google Model Garden dedicated endpoint with single URL provided for both streaming
and non-streaming tasks. See the endpoint's `Sample request` page for the variable values used in the URL.
method_request: 'PUT _inference/completion/google_model_garden_meta_completion'
# type: "request"
value: |-
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
summary: A chat_completion task for Google Model Garden Meta dedicated endpoint with single streaming URL provided
description: Run `PUT _inference/chat_completion/google_model_garden_meta_chat_completion` to create an inference endpoint to perform a `chat_completion` task using Meta's model hosted on Google Model Garden dedicated endpoint with single streaming URL provided. See the endpoint's `Sample request` page for the variable values used in the URL.
description:
Run `PUT _inference/chat_completion/google_model_garden_meta_chat_completion` to create an inference endpoint to
perform a `chat_completion` task using Meta's model hosted on Google Model Garden dedicated endpoint with single streaming URL
provided. See the endpoint's `Sample request` page for the variable values used in the URL.
method_request: 'PUT _inference/chat_completion/google_model_garden_meta_chat_completion'
# type: "request"
value: |-
Expand Down
Loading