File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
elasticsearch-api/lib/elasticsearch/api/actions/inference Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -42,8 +42,6 @@ def get_model(arguments = {})
4242 end
4343 request_opts [ :defined_params ] = defined_params unless defined_params . empty?
4444
45- raise ArgumentError , "Required argument 'inference_id' missing" unless arguments [ :inference_id ]
46-
4745 arguments = arguments . clone
4846 headers = arguments . delete ( :headers ) || { }
4947
@@ -56,8 +54,10 @@ def get_model(arguments = {})
5654 method = Elasticsearch ::API ::HTTP_GET
5755 path = if _task_type && _inference_id
5856 "_inference/#{ Utils . __listify ( _task_type ) } /#{ Utils . __listify ( _inference_id ) } "
59- else
57+ elsif _inference_id
6058 "_inference/#{ Utils . __listify ( _inference_id ) } "
59+ else
60+ '_inference'
6161 end
6262 params = { }
6363
You can’t perform that action at this time.
0 commit comments