Skip to content

Commit e7a2a20

Browse files
authored
Add version prefix to Inference Service API path (#117095)
* Add version prefix to EIS API path * Update docs/changelog/117095.yaml
1 parent b42e8f2 commit e7a2a20

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

docs/changelog/117095.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 117095
2+
summary: 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)