Skip to content

Commit 534dc00

Browse files
change task api availability
1 parent 9098159 commit 534dc00

File tree

6 files changed

+152
-20
lines changed

6 files changed

+152
-20
lines changed

docs/examples/languageExamples.json

Lines changed: 71 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11552,23 +11552,23 @@
1155211552
"specification/inference/text_embedding/examples/request/TextEmbeddingRequestExample1.yaml": [
1155311553
{
1155411554
"language": "Python",
11555-
"code": "resp = client.inference.text_embedding(\n inference_id=\"my-cohere-endpoint\",\n input=\"The sky above the port was the color of television tuned to a dead channel.\",\n task_settings={\n \"input_type\": \"ingest\"\n },\n)"
11555+
"code": "resp = client.inference.text_embedding(\n inference_id=\"my-cohere-endpoint\",\n input=\"The sky above the port was the color of television tuned to a dead channel.\",\n input_type=\"ingest\",\n)"
1155611556
},
1155711557
{
1155811558
"language": "JavaScript",
11559-
"code": "const response = await client.inference.textEmbedding({\n inference_id: \"my-cohere-endpoint\",\n input:\n \"The sky above the port was the color of television tuned to a dead channel.\",\n task_settings: {\n input_type: \"ingest\",\n },\n});"
11559+
"code": "const response = await client.inference.textEmbedding({\n inference_id: \"my-cohere-endpoint\",\n input:\n \"The sky above the port was the color of television tuned to a dead channel.\",\n input_type: \"ingest\",\n});"
1156011560
},
1156111561
{
1156211562
"language": "Ruby",
11563-
"code": "response = client.inference.text_embedding(\n inference_id: \"my-cohere-endpoint\",\n body: {\n \"input\": \"The sky above the port was the color of television tuned to a dead channel.\",\n \"task_settings\": {\n \"input_type\": \"ingest\"\n }\n }\n)"
11563+
"code": "response = client.inference.text_embedding(\n inference_id: \"my-cohere-endpoint\",\n body: {\n \"input\": \"The sky above the port was the color of television tuned to a dead channel.\",\n \"input_type\": \"ingest\"\n }\n)"
1156411564
},
1156511565
{
1156611566
"language": "PHP",
11567-
"code": "$resp = $client->inference()->textEmbedding([\n \"inference_id\" => \"my-cohere-endpoint\",\n \"body\" => [\n \"input\" => \"The sky above the port was the color of television tuned to a dead channel.\",\n \"task_settings\" => [\n \"input_type\" => \"ingest\",\n ],\n ],\n]);"
11567+
"code": "$resp = $client->inference()->textEmbedding([\n \"inference_id\" => \"my-cohere-endpoint\",\n \"body\" => [\n \"input\" => \"The sky above the port was the color of television tuned to a dead channel.\",\n \"input_type\" => \"ingest\",\n ],\n]);"
1156811568
},
1156911569
{
1157011570
"language": "curl",
11571-
"code": "curl -X POST -H \"Authorization: ApiKey $ELASTIC_API_KEY\" -H \"Content-Type: application/json\" -d '{\"input\":\"The sky above the port was the color of television tuned to a dead channel.\",\"task_settings\":{\"input_type\":\"ingest\"}}' \"$ELASTICSEARCH_URL/_inference/text_embedding/my-cohere-endpoint\""
11571+
"code": "curl -X POST -H \"Authorization: ApiKey $ELASTIC_API_KEY\" -H \"Content-Type: application/json\" -d '{\"input\":\"The sky above the port was the color of television tuned to a dead channel.\",\"input_type\":\"ingest\"}' \"$ELASTICSEARCH_URL/_inference/text_embedding/my-cohere-endpoint\""
1157211572
}
1157311573
],
1157411574
"specification/inference/put_jinaai/examples/request/PutJinaAiRequestExample1.yaml": [
@@ -14848,5 +14848,71 @@
1484814848
"language": "curl",
1484914849
"code": "curl -X POST -H \"Authorization: ApiKey $ELASTIC_API_KEY\" -H \"Content-Type: application/json\" -d '{\"query\":\"SELECT * FROM library ORDER BY page_count DESC LIMIT 5\"}' \"$ELASTICSEARCH_URL/_sql?format=txt\""
1485014850
}
14851+
],
14852+
"specification/streams/logs_disable/examples/request/PostStreamsDisableRequestExample1.yaml": [
14853+
{
14854+
"language": "Python",
14855+
"code": "resp = client.streams.logs_disable()"
14856+
},
14857+
{
14858+
"language": "JavaScript",
14859+
"code": "const response = await client.streams.logsDisable();"
14860+
},
14861+
{
14862+
"language": "Ruby",
14863+
"code": "response = client.streams.logs_disable"
14864+
},
14865+
{
14866+
"language": "PHP",
14867+
"code": "$resp = $client->streams()->logsDisable();"
14868+
},
14869+
{
14870+
"language": "curl",
14871+
"code": "curl -X POST -H \"Authorization: ApiKey $ELASTIC_API_KEY\" \"$ELASTICSEARCH_URL/_streams/logs/_disable\""
14872+
}
14873+
],
14874+
"specification/streams/status/examples/request/GetStreamsStatusRequestExample1.yaml": [
14875+
{
14876+
"language": "Python",
14877+
"code": "resp = client.streams.status()"
14878+
},
14879+
{
14880+
"language": "JavaScript",
14881+
"code": "const response = await client.streams.status();"
14882+
},
14883+
{
14884+
"language": "Ruby",
14885+
"code": "response = client.streams.status"
14886+
},
14887+
{
14888+
"language": "PHP",
14889+
"code": "$resp = $client->streams()->status();"
14890+
},
14891+
{
14892+
"language": "curl",
14893+
"code": "curl -X GET -H \"Authorization: ApiKey $ELASTIC_API_KEY\" \"$ELASTICSEARCH_URL/_streams/status\""
14894+
}
14895+
],
14896+
"specification/streams/logs_enable/examples/request/PostStreamsEnableRequestExample1.yaml": [
14897+
{
14898+
"language": "Python",
14899+
"code": "resp = client.streams.logs_enable()"
14900+
},
14901+
{
14902+
"language": "JavaScript",
14903+
"code": "const response = await client.streams.logsEnable();"
14904+
},
14905+
{
14906+
"language": "Ruby",
14907+
"code": "response = client.streams.logs_enable"
14908+
},
14909+
{
14910+
"language": "PHP",
14911+
"code": "$resp = $client->streams()->logsEnable();"
14912+
},
14913+
{
14914+
"language": "curl",
14915+
"code": "curl -X POST -H \"Authorization: ApiKey $ELASTIC_API_KEY\" \"$ELASTICSEARCH_URL/_streams/logs/_enable\""
14916+
}
1485114917
]
1485214918
}

output/openapi/elasticsearch-openapi.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema.json

Lines changed: 74 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/tasks/cancel/CancelTasksRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import { TaskId } from '@_types/common'
3434
* To troubleshoot why a cancelled task does not complete promptly, use the get task information API with the `?detailed` parameter to identify the other tasks the system is running.
3535
* You can also use the node hot threads API to obtain detailed information about the work the system is doing instead of completing the cancelled task.
3636
* @rest_spec_name tasks.cancel
37-
* @availability stack since=2.3.0 stability=experimental
37+
* @availability stack since=2.3.0 stability=stable
3838
* @availability serverless stability=experimental visibility=private
3939
* @cluster_privileges manage
4040
* @doc_id tasks

specification/tasks/get/GetTaskRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import { Duration } from '@_types/Time'
3030
*
3131
* If the task identifier is not found, a 404 response code indicates that there are no resources that match the request.
3232
* @rest_spec_name tasks.get
33-
* @availability stack since=5.0.0 stability=experimental
33+
* @availability stack since=5.0.0 stability=stable
3434
* @availability serverless stability=experimental visibility=public
3535
* @cluster_privileges monitor
3636
* @doc_id tasks

specification/tasks/list/ListTasksRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ import { GroupBy } from '@tasks/_types/GroupBy'
8383
* The `X-Opaque-Id` in the task `headers` is the ID for the task that was initiated by the REST request.
8484
* The `X-Opaque-Id` in the children `headers` is the child task of the task that was initiated by the REST request.
8585
* @rest_spec_name tasks.list
86-
* @availability stack since=2.3.0 stability=experimental
86+
* @availability stack since=2.3.0 stability=stable
8787
* @availability serverless stability=experimental visibility=private
8888
* @cluster_privileges monitor
8989
* @doc_id tasks

0 commit comments

Comments
 (0)