Skip to content
Merged
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions docs/changelog/135838.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 135838
summary: Remove rate limit field from services API for EIS
area: Machine Learning
type: bug
issues: []
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@
import org.elasticsearch.xpack.inference.services.elastic.rerank.ElasticInferenceServiceRerankServiceSettings;
import org.elasticsearch.xpack.inference.services.elastic.sparseembeddings.ElasticInferenceServiceSparseEmbeddingsModel;
import org.elasticsearch.xpack.inference.services.elastic.sparseembeddings.ElasticInferenceServiceSparseEmbeddingsServiceSettings;
import org.elasticsearch.xpack.inference.services.settings.RateLimitSettings;
import org.elasticsearch.xpack.inference.telemetry.TraceContext;

import java.util.EnumSet;
Expand Down Expand Up @@ -683,12 +682,6 @@ public static InferenceServiceConfiguration createConfiguration(EnumSet<TaskType
.build()
);

configurationMap.putAll(
RateLimitSettings.toSettingsConfiguration(
EnumSet.of(TaskType.SPARSE_EMBEDDING, TaskType.CHAT_COMPLETION, TaskType.RERANK, TaskType.TEXT_EMBEDDING)
)
);

return new InferenceServiceConfiguration.Builder().setService(NAME)
.setName(SERVICE_NAME)
.setTaskTypes(enabledTaskTypes)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -971,15 +971,6 @@ public void testCreateConfiguration() throws Exception {
"name": "Elastic",
"task_types": ["sparse_embedding", "chat_completion", "text_embedding"],
"configurations": {
"rate_limit.requests_per_minute": {
"description": "Minimize the number of rate limit errors.",
"label": "Rate Limit",
"required": false,
"sensitive": false,
"updatable": false,
"type": "int",
"supported_task_types": ["text_embedding", "sparse_embedding" , "rerank", "chat_completion"]
},
"model_id": {
"description": "The name of the model to use for the inference task.",
"label": "Model ID",
Expand Down Expand Up @@ -1028,15 +1019,6 @@ public void testGetConfiguration_WithoutSupportedTaskTypes() throws Exception {
"name": "Elastic",
"task_types": [],
"configurations": {
"rate_limit.requests_per_minute": {
"description": "Minimize the number of rate limit errors.",
"label": "Rate Limit",
"required": false,
"sensitive": false,
"updatable": false,
"type": "int",
"supported_task_types": ["text_embedding", "sparse_embedding" , "rerank", "chat_completion"]
},
"model_id": {
"description": "The name of the model to use for the inference task.",
"label": "Model ID",
Expand Down