Skip to content

Commit f52f5c4

Browse files
authored
[8.x] Add version prefix to Inference Service API path (#117696)
* Add version prefix to Inference Service API path * Update docs/changelog/117696.yaml
1 parent f52b8c6 commit f52f5c4

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

docs/changelog/117696.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 117696
2+
summary: "[8.x] Add version prefix to Inference Service API path"
3+
area: Inference
4+
type: enhancement
5+
issues: []

x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/services/elastic/ElasticInferenceServiceSparseEmbeddingsModel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,6 @@ private URI createUri() throws URISyntaxException {
108108
default -> throw new IllegalArgumentException("Unsupported model for EIS [" + modelId + "]");
109109
}
110110

111-
return new URI(elasticInferenceServiceComponents().eisGatewayUrl() + "/sparse-text-embedding/" + modelIdUriPath);
111+
return new URI(elasticInferenceServiceComponents().eisGatewayUrl() + "/api/v1/sparse-text-embedding/" + modelIdUriPath);
112112
}
113113
}

0 commit comments

Comments
 (0)