Skip to content

Commit 7e73dc4

Browse files
Add OpenShift AI REST API specification (elastic#138025)
1 parent 8a839dc commit 7e73dc4

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"inference.put_openshift_ai": {
3+
"documentation": {
4+
"url": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-openshift-ai",
5+
"description": "Create an OpenShift AI inference endpoint"
6+
},
7+
"stability": "stable",
8+
"visibility": "public",
9+
"headers": {
10+
"accept": ["application/json"],
11+
"content_type": ["application/json"]
12+
},
13+
"url": {
14+
"paths": [
15+
{
16+
"path": "/_inference/{task_type}/{openshiftai_inference_id}",
17+
"methods": ["PUT"],
18+
"parts": {
19+
"task_type": {
20+
"type": "enum",
21+
"description": "The task type",
22+
"options": [
23+
"rerank",
24+
"text_embedding",
25+
"completion",
26+
"chat_completion"
27+
]
28+
},
29+
"openshiftai_inference_id": {
30+
"type": "string",
31+
"description": "The inference ID"
32+
}
33+
}
34+
}
35+
]
36+
},
37+
"body": {
38+
"description": "The inference endpoint's task and service settings",
39+
"required": true
40+
},
41+
"params": {
42+
"timeout": {
43+
"type": "time",
44+
"description": "Specifies the amount of time to wait for the inference endpoint to be created.",
45+
"default": "30s"
46+
}
47+
}
48+
}
49+
}

0 commit comments

Comments
 (0)