Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ public void parseRequestConfig(
config,
preferredModelVariant,
serviceSettingsMap,
true,
chunkingSettings,
modelListener
)
Expand Down Expand Up @@ -181,6 +182,7 @@ public void parseRequestConfig(
config,
preferredModelVariant,
serviceSettingsMap,
OLD_ELSER_SERVICE_NAME.equals(serviceName),
chunkingSettings,
modelListener
)
Expand Down Expand Up @@ -340,6 +342,7 @@ private void elserCase(
Map<String, Object> config,
PreferredModelVariant preferredModelVariant,
Map<String, Object> serviceSettingsMap,
boolean isElserService,
ChunkingSettings chunkingSettings,
ActionListener<Model> modelListener
) {
Expand Down Expand Up @@ -370,15 +373,17 @@ private void elserCase(
}
}

DEPRECATION_LOGGER.warn(
DeprecationCategory.API,
"inference_api_elser_service",
"The [{}] service is deprecated and will be removed in a future release. Use the [{}] service instead, with"
+ " [model_id] set to [{}] in the [service_settings]",
OLD_ELSER_SERVICE_NAME,
ElasticsearchInternalService.NAME,
defaultModelId
);
if (isElserService) {
DEPRECATION_LOGGER.warn(
DeprecationCategory.API,
"inference_api_elser_service",
"The [{}] service is deprecated and will be removed in a future release. Use the [{}] service instead, with"
+ " [model_id] set to [{}] in the [service_settings]",
OLD_ELSER_SERVICE_NAME,
ElasticsearchInternalService.NAME,
defaultModelId
);
}

throwIfNotEmptyMap(config, name());
throwIfNotEmptyMap(serviceSettingsMap, name());
Expand Down