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
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"inference.put_ai21": {
"documentation": {
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-ai21.html",
"description": "Configure a AI21 inference endpoint"
},
"stability": "stable",
"visibility": "public",
"headers": {
"accept": ["application/json"],
"content_type": ["application/json"]
},
"url": {
"paths": [
{
"path": "/_inference/{task_type}/{ai21_inference_id}",
"methods": ["PUT"],
"parts": {
"task_type": {
"type": "string",
"description": "The task type"
},
"ai21_inference_id": {
"type": "string",
"description": "The inference ID"
}
}
}
]
},
"body": {
"description": "The inference endpoint's task and service settings"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"inference.put_llama": {
"documentation": {
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-llama.html",
"description": "Configure a Llama inference endpoint"
},
"stability": "stable",
"visibility": "public",
"headers": {
"accept": ["application/json"],
"content_type": ["application/json"]
},
"url": {
"paths": [
{
"path": "/_inference/{task_type}/{llama_inference_id}",
"methods": ["PUT"],
"parts": {
"task_type": {
"type": "string",
"description": "The task type"
},
"llama_inference_id": {
"type": "string",
"description": "The inference ID"
}
}
}
]
},
"body": {
"description": "The inference endpoint's task and service settings"
}
}
}
12 changes: 6 additions & 6 deletions rest-api-spec/src/main/resources/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
"Api": {
"type": "object",
"propertyNames": {
"pattern": "^(?:[a-z]+?(_[a-z]+)*(\\.[a-z]+?(_[a-z]+)*)?|_internal\\.[a-z]+?(_[a-z]+)*)$"
"pattern": "^(?:[a-z][a-z0-9]*?(_[a-z0-9]+)*(\\.[a-z][a-z0-9]*?(_[a-z0-9]+)*)?|_internal\\.[a-z][a-z0-9]*?(_[a-z0-9]+)*)$"
},
"minProperties": 1,
"maxProperties": 1,
"patternProperties": {
"^(?:[a-z]+?(_[a-z]+)*(\\.[a-z]+?(_[a-z]+)*)?|_internal\\.[a-z]+?(_[a-z]+)*)$": {
"^(?:[a-z][a-z0-9]*?(_[a-z0-9]+)*(\\.[a-z][a-z0-9]*?(_[a-z0-9]+)*)?|_internal\\.[a-z][a-z0-9]*?(_[a-z0-9]+)*)$": {
"$ref": "#/definitions/Components"
}
},
Expand Down Expand Up @@ -135,10 +135,10 @@
"type": "object",
"additionalProperties": true,
"propertyNames": {
"pattern": "^_?[a-z]+?(_[a-z]+)*$"
"pattern": "^_?[a-z][a-z0-9]*?(_[a-z0-9]+)*$"
},
"patternProperties": {
"^_?[a-z]+?(_[a-z]+)*$": {
"^_?[a-z][a-z0-9]*?(_[a-z0-9]+)*$": {
"$ref": "#/definitions/ParamPart"
}
},
Expand Down Expand Up @@ -232,10 +232,10 @@
"type": "object",
"additionalProperties": true,
"propertyNames": {
"pattern": "^_?[a-z]+?(_[a-z]+)*$"
"pattern": "^_?[a-z][a-z0-9]*?(_[a-z0-9]+)*$"
},
"patternProperties": {
"^_?[a-z]+?(_[a-z]+)*$": {
"^_?[a-z][a-z0-9]*?(_[a-z0-9]+)*$": {
"$ref": "#/definitions/ParamPart"
}
},
Expand Down