-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Add OpenShift AI REST API specification #138025
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
2bedd44
084cdd0
11cec97
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| { | ||
| "inference.put_openshift_ai": { | ||
| "documentation": { | ||
| "url": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-openshift-ai", | ||
| "description": "Create an OpenShift AI inference endpoint" | ||
| }, | ||
| "stability": "stable", | ||
| "visibility": "public", | ||
| "headers": { | ||
| "accept": ["application/json"], | ||
| "content_type": ["application/json"] | ||
| }, | ||
| "url": { | ||
| "paths": [ | ||
| { | ||
| "path": "/_inference/{task_type}/{openshiftai_inference_id}", | ||
| "methods": ["PUT"], | ||
| "parts": { | ||
| "task_type": { | ||
| "type": "string", | ||
| "description": "The task type" | ||
|
||
| }, | ||
| "openshiftai_inference_id": { | ||
| "type": "string", | ||
| "description": "The inference ID" | ||
| } | ||
| } | ||
| } | ||
| ] | ||
| }, | ||
| "body": { | ||
| "description": "The inference endpoint's task and service settings", | ||
| "required": true | ||
| }, | ||
| "params": { | ||
| "timeout": { | ||
| "type": "time", | ||
| "description": "Specifies the amount of time to wait for the inference endpoint to be created.", | ||
| "default": "30s" | ||
| } | ||
| } | ||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should be
"enum"There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At the time this PR was opened,
task_typewas still defined as a string in every other place. It was converted to anenumin other parts of the codebase during the time this PR was awaiting review. I’ve updated this PR accordingly to align with the latest changes. Thanks.