File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/services/openai Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 6060import static org .elasticsearch .xpack .inference .external .action .ActionUtils .constructFailedToSendRequestMessage ;
6161import static org .elasticsearch .xpack .inference .services .ServiceFields .DIMENSIONS ;
6262import static org .elasticsearch .xpack .inference .services .ServiceFields .MODEL_ID ;
63+ import static org .elasticsearch .xpack .inference .services .ServiceFields .URL ;
6364import static org .elasticsearch .xpack .inference .services .ServiceUtils .createInvalidModelException ;
6465import static org .elasticsearch .xpack .inference .services .ServiceUtils .parsePersistedConfigErrorMsg ;
6566import static org .elasticsearch .xpack .inference .services .ServiceUtils .removeFromMap ;
@@ -418,6 +419,19 @@ public static InferenceServiceConfiguration get() {
418419 () -> {
419420 var configurationMap = new HashMap <String , SettingsConfiguration >();
420421
422+ configurationMap .put (
423+ URL ,
424+ new SettingsConfiguration .Builder (SUPPORTED_TASK_TYPES_FOR_SERVICES_API ).setDescription (
425+ "The absolute URL of the external service to send requests to."
426+ )
427+ .setLabel ("URL" )
428+ .setRequired (false )
429+ .setSensitive (false )
430+ .setUpdatable (false )
431+ .setType (SettingsConfigurationFieldType .STRING )
432+ .build ()
433+ );
434+
421435 configurationMap .put (
422436 MODEL_ID ,
423437 new SettingsConfiguration .Builder (SUPPORTED_TASK_TYPES_FOR_SERVICES_API ).setDescription (
You can’t perform that action at this time.
0 commit comments