Skip to content

Commit

Permalink
[API] Updates inference.update to use PUT
Browse files Browse the repository at this point in the history
  • Loading branch information
picandocodigo committed Feb 3, 2025
1 parent 22ad103 commit 8ffc35d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def update(arguments = {})

_task_type = arguments.delete(:task_type)

method = Elasticsearch::API::HTTP_POST
method = Elasticsearch::API::HTTP_PUT
path = if _task_type && _inference_id
"_inference/#{Utils.__listify(_task_type)}/#{Utils.__listify(_inference_id)}/_update"
else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
describe 'client#inference.update' do
let(:expected_args) do
[
'POST',
'PUT',
'_inference/foo/bar/_update',
{},
nil,
Expand Down

0 comments on commit 8ffc35d

Please sign in to comment.