Skip to content

Commit

Permalink
[Inference API] Fix bug checking for e5 or reranker default IDs (#119797
Browse files Browse the repository at this point in the history
) (#119851)

* Fix bug checking for non-elser defaults

* Update docs/changelog/119797.yaml

* fix typo

Co-authored-by: Felix Barnsteiner <felixbarny@users.noreply.github.com>
  • Loading branch information
maxhniebergall and felixbarny authored Jan 9, 2025
1 parent 9b36a43 commit f5abce7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions docs/changelog/119797.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 119797
summary: "[Inference API] Fix bug checking for e5 or reranker default IDs"
area: Machine Learning
type: bug
issues: []
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public void parseRequestConfig(
Map<String, Object> config,
ActionListener<Model> modelListener
) {
if (inferenceEntityId.equals(DEFAULT_ELSER_ID)) {
if (isDefaultId(inferenceEntityId)) {
modelListener.onFailure(
new ElasticsearchStatusException(
"[{}] is a reserved inference Id. Cannot create a new inference endpoint with a reserved Id",
Expand Down

0 comments on commit f5abce7

Please sign in to comment.