Skip to content

Commit e06653b

Browse files
Hide Llama service from configuration API to enhance security and reduce exposure
1 parent 75cbf85 commit e06653b

File tree

1 file changed

+6
-0
lines changed
  • x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/services/llama

1 file changed

+6
-0
lines changed

x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/services/llama/LlamaService.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,12 @@ public TransportVersion getMinimalSupportedVersion() {
371371
return TransportVersions.ML_INFERENCE_LLAMA_ADDED;
372372
}
373373

374+
@Override
375+
public boolean hideFromConfigurationApi() {
376+
// The Llama service is very configurable so we're going to hide it from being exposed in the service API.
377+
return true;
378+
}
379+
374380
/**
375381
* Configuration class for the Llama inference service.
376382
* It provides the settings and configurations required for the service.

0 commit comments

Comments
 (0)