Skip to content

Commit c42fa2d

Browse files
committed
OAK-11750: Update inference stats name
1 parent 5678f12 commit c42fa2d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

oak-search-elastic/src/main/java/org/apache/jackrabbit/oak/plugins/index/elastic/query/inference/InferenceServiceManager.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ public static InferenceService getInstance(@NotNull String url, String model) {
5454

5555
public static InferenceService getInstance(InferenceModelConfig inferenceModelConfig) {
5656
//TODO we should use hash here, as hash takes care of all properties in model config.
57-
String key = inferenceModelConfig.getEmbeddingServiceUrl()
58-
+ "|" + inferenceModelConfig.getInferenceModelConfigName()
57+
String key = inferenceModelConfig.getInferenceModelConfigName()
5958
+ "|" + inferenceModelConfig.getModel();
6059

6160
if (SERVICES.size() >= MAX_CACHED_SERVICES) {

0 commit comments

Comments
 (0)