Skip to content

Commit 5f146f8

Browse files
authored
[Inference API] Rename PeristedConfig to PersistedConfig (#108988)
1 parent 0d404d9 commit 5f146f8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

x-pack/plugin/inference/src/test/java/org/elasticsearch/xpack/inference/services/cohere/CohereServiceTests.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1282,25 +1282,25 @@ private CohereService createCohereService() {
12821282
return new CohereService(mock(HttpRequestSender.Factory.class), createWithEmptySettings(threadPool));
12831283
}
12841284

1285-
private PeristedConfig getPersistedConfigMap(
1285+
private PersistedConfig getPersistedConfigMap(
12861286
Map<String, Object> serviceSettings,
12871287
Map<String, Object> taskSettings,
12881288
Map<String, Object> secretSettings
12891289
) {
12901290

1291-
return new PeristedConfig(
1291+
return new PersistedConfig(
12921292
new HashMap<>(Map.of(ModelConfigurations.SERVICE_SETTINGS, serviceSettings, ModelConfigurations.TASK_SETTINGS, taskSettings)),
12931293
new HashMap<>(Map.of(ModelSecrets.SECRET_SETTINGS, secretSettings))
12941294
);
12951295
}
12961296

1297-
private PeristedConfig getPersistedConfigMap(Map<String, Object> serviceSettings, Map<String, Object> taskSettings) {
1297+
private PersistedConfig getPersistedConfigMap(Map<String, Object> serviceSettings, Map<String, Object> taskSettings) {
12981298

1299-
return new PeristedConfig(
1299+
return new PersistedConfig(
13001300
new HashMap<>(Map.of(ModelConfigurations.SERVICE_SETTINGS, serviceSettings, ModelConfigurations.TASK_SETTINGS, taskSettings)),
13011301
null
13021302
);
13031303
}
13041304

1305-
private record PeristedConfig(Map<String, Object> config, Map<String, Object> secrets) {}
1305+
private record PersistedConfig(Map<String, Object> config, Map<String, Object> secrets) {}
13061306
}

0 commit comments

Comments
 (0)