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 = {})
42
42
end
43
43
request_opts [ :defined_params ] = defined_params unless defined_params . empty?
44
44
45
- raise ArgumentError , "Required argument 'inference_id' missing" unless arguments [ :inference_id ]
46
-
47
45
arguments = arguments . clone
48
46
headers = arguments . delete ( :headers ) || { }
49
47
@@ -56,8 +54,10 @@ def get_model(arguments = {})
56
54
method = Elasticsearch ::API ::HTTP_GET
57
55
path = if _task_type && _inference_id
58
56
"_inference/#{ Utils . __listify ( _task_type ) } /#{ Utils . __listify ( _inference_id ) } "
59
- else
57
+ elsif _inference_id
60
58
"_inference/#{ Utils . __listify ( _inference_id ) } "
59
+ else
60
+ '_inference'
61
61
end
62
62
params = { }
63
63
You can’t perform that action at this time.
0 commit comments