From 1c92c96819c1480b236e6aebc676be53809f2fb3 Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Tue, 12 Aug 2025 11:26:18 +0400 Subject: [PATCH] Remove unused EIS types (#5107) They were removed in PR 4212. (cherry picked from commit dcfb0ffe0fd80dbc0aa57ef5ad63ebbef438a203) # Conflicts: # output/schema/schema.json --- output/schema/schema.json | 80 +++++++++---------- output/schema/validation-errors.json | 4 - specification/inference/_types/CommonTypes.ts | 33 -------- 3 files changed, 40 insertions(+), 77 deletions(-) diff --git a/output/schema/schema.json b/output/schema/schema.json index 27e5ac371f..3bcb3e3145 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -166414,7 +166414,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L1166-L1188" + "specLocation": "inference/_types/CommonTypes.ts#L1154-L1176" }, { "kind": "enum", @@ -166427,7 +166427,7 @@ "name": "DeepSeekServiceType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1190-L1192" + "specLocation": "inference/_types/CommonTypes.ts#L1178-L1180" }, { "kind": "interface", @@ -166568,7 +166568,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L1215-L1249" + "specLocation": "inference/_types/CommonTypes.ts#L1182-L1216" }, { "kind": "enum", @@ -166581,7 +166581,7 @@ "name": "ElasticsearchServiceType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1265-L1267" + "specLocation": "inference/_types/CommonTypes.ts#L1232-L1234" }, { "kind": "interface", @@ -166604,7 +166604,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L1251-L1257" + "specLocation": "inference/_types/CommonTypes.ts#L1218-L1224" }, { "kind": "enum", @@ -166623,7 +166623,7 @@ "name": "ElasticsearchTaskType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1259-L1263" + "specLocation": "inference/_types/CommonTypes.ts#L1226-L1230" }, { "kind": "interface", @@ -166669,7 +166669,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L1269-L1295" + "specLocation": "inference/_types/CommonTypes.ts#L1236-L1262" }, { "kind": "enum", @@ -166682,7 +166682,7 @@ "name": "ElserServiceType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1301-L1303" + "specLocation": "inference/_types/CommonTypes.ts#L1268-L1270" }, { "kind": "enum", @@ -166695,7 +166695,7 @@ "name": "ElserTaskType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1297-L1299" + "specLocation": "inference/_types/CommonTypes.ts#L1264-L1266" }, { "kind": "enum", @@ -166708,7 +166708,7 @@ "name": "GoogleAiServiceType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1328-L1330" + "specLocation": "inference/_types/CommonTypes.ts#L1295-L1297" }, { "kind": "interface", @@ -166756,7 +166756,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L1305-L1321" + "specLocation": "inference/_types/CommonTypes.ts#L1272-L1288" }, { "kind": "enum", @@ -166772,7 +166772,7 @@ "name": "GoogleAiStudioTaskType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1323-L1326" + "specLocation": "inference/_types/CommonTypes.ts#L1290-L1293" }, { "kind": "interface", @@ -166846,7 +166846,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L1332-L1358" + "specLocation": "inference/_types/CommonTypes.ts#L1299-L1325" }, { "kind": "enum", @@ -166859,7 +166859,7 @@ "name": "GoogleVertexAIServiceType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1378-L1380" + "specLocation": "inference/_types/CommonTypes.ts#L1345-L1347" }, { "kind": "interface", @@ -166893,7 +166893,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L1360-L1369" + "specLocation": "inference/_types/CommonTypes.ts#L1327-L1336" }, { "kind": "enum", @@ -166915,7 +166915,7 @@ "name": "GoogleVertexAITaskType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1371-L1376" + "specLocation": "inference/_types/CommonTypes.ts#L1338-L1343" }, { "kind": "interface", @@ -166977,7 +166977,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L1382-L1414" + "specLocation": "inference/_types/CommonTypes.ts#L1349-L1381" }, { "kind": "enum", @@ -166990,7 +166990,7 @@ "name": "HuggingFaceServiceType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1435-L1437" + "specLocation": "inference/_types/CommonTypes.ts#L1402-L1404" }, { "kind": "interface", @@ -167024,7 +167024,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L1416-L1426" + "specLocation": "inference/_types/CommonTypes.ts#L1383-L1393" }, { "kind": "enum", @@ -167046,7 +167046,7 @@ "name": "HuggingFaceTaskType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1428-L1433" + "specLocation": "inference/_types/CommonTypes.ts#L1395-L1400" }, { "kind": "interface", @@ -168129,7 +168129,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L1439-L1468" + "specLocation": "inference/_types/CommonTypes.ts#L1406-L1435" }, { "kind": "enum", @@ -168142,7 +168142,7 @@ "name": "JinaAIServiceType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1498-L1500" + "specLocation": "inference/_types/CommonTypes.ts#L1465-L1467" }, { "kind": "enum", @@ -168161,7 +168161,7 @@ "name": "JinaAISimilarityType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1502-L1506" + "specLocation": "inference/_types/CommonTypes.ts#L1469-L1473" }, { "kind": "interface", @@ -168207,7 +168207,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L1470-L1491" + "specLocation": "inference/_types/CommonTypes.ts#L1437-L1458" }, { "kind": "enum", @@ -168223,7 +168223,7 @@ "name": "JinaAITaskType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1493-L1496" + "specLocation": "inference/_types/CommonTypes.ts#L1460-L1463" }, { "kind": "enum", @@ -168245,7 +168245,7 @@ "name": "JinaAITextEmbeddingTask", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1508-L1513" + "specLocation": "inference/_types/CommonTypes.ts#L1475-L1480" }, { "kind": "interface", @@ -168403,7 +168403,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L1515-L1542" + "specLocation": "inference/_types/CommonTypes.ts#L1482-L1509" }, { "kind": "enum", @@ -168416,7 +168416,7 @@ "name": "MistralServiceType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1550-L1552" + "specLocation": "inference/_types/CommonTypes.ts#L1517-L1519" }, { "kind": "enum", @@ -168435,7 +168435,7 @@ "name": "MistralTaskType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1544-L1548" + "specLocation": "inference/_types/CommonTypes.ts#L1511-L1515" }, { "kind": "interface", @@ -168522,7 +168522,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L1554-L1596" + "specLocation": "inference/_types/CommonTypes.ts#L1521-L1563" }, { "kind": "enum", @@ -168535,7 +168535,7 @@ "name": "OpenAIServiceType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1612-L1614" + "specLocation": "inference/_types/CommonTypes.ts#L1579-L1581" }, { "kind": "interface", @@ -168557,7 +168557,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L1598-L1604" + "specLocation": "inference/_types/CommonTypes.ts#L1565-L1571" }, { "kind": "enum", @@ -168576,7 +168576,7 @@ "name": "OpenAITaskType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1606-L1610" + "specLocation": "inference/_types/CommonTypes.ts#L1573-L1577" }, { "kind": "interface", @@ -169467,7 +169467,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L1616-L1647" + "specLocation": "inference/_types/CommonTypes.ts#L1583-L1614" }, { "kind": "enum", @@ -169480,7 +169480,7 @@ "name": "VoyageAIServiceType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1680-L1682" + "specLocation": "inference/_types/CommonTypes.ts#L1647-L1649" }, { "kind": "interface", @@ -169540,7 +169540,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L1649-L1673" + "specLocation": "inference/_types/CommonTypes.ts#L1616-L1640" }, { "kind": "enum", @@ -169556,7 +169556,7 @@ "name": "VoyageAITaskType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1675-L1678" + "specLocation": "inference/_types/CommonTypes.ts#L1642-L1645" }, { "kind": "interface", @@ -169644,7 +169644,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L1684-L1721" + "specLocation": "inference/_types/CommonTypes.ts#L1651-L1688" }, { "kind": "enum", @@ -169657,7 +169657,7 @@ "name": "WatsonxServiceType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1727-L1729" + "specLocation": "inference/_types/CommonTypes.ts#L1694-L1696" }, { "kind": "enum", @@ -169670,7 +169670,7 @@ "name": "WatsonxTaskType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1723-L1725" + "specLocation": "inference/_types/CommonTypes.ts#L1690-L1692" }, { "kind": "request", diff --git a/output/schema/validation-errors.json b/output/schema/validation-errors.json index 1de3f987f5..9ea4cbbf06 100644 --- a/output/schema/validation-errors.json +++ b/output/schema/validation-errors.json @@ -61,10 +61,6 @@ "Dangling type 'inference._types:AmazonSageMakerElementType'", "Dangling type 'inference._types:AmazonSageMakerOpenAiTaskSettings'", "Dangling type 'inference._types:AmazonSageMakerSimilarity'", - "Dangling type 'inference._types:EisServiceSettings'", - "Dangling type 'inference._types:EisServiceType'", - "Dangling type 'inference._types:EisTaskSettings'", - "Dangling type 'inference._types:EisTaskType'", "Dangling type 'ingest._types:PipelineFailure'", "Dangling type 'ml._types:CountFunction'", "Dangling type 'ml._types:DistinctCountFunction'", diff --git a/specification/inference/_types/CommonTypes.ts b/specification/inference/_types/CommonTypes.ts index ff161f2b4a..2348297db0 100644 --- a/specification/inference/_types/CommonTypes.ts +++ b/specification/inference/_types/CommonTypes.ts @@ -1151,18 +1151,6 @@ export class CustomTaskSettings { parameters?: UserDefinedValue } -export class EisServiceSettings { - /** - * The name of the model to use for the inference task. - */ - model_id: string - /** - * This setting helps to minimize the number of rate limit errors returned. - * By default, the `elastic` service sets the number of requests allowed per minute to `240` in case of `chat_completion`. - */ - rate_limit?: RateLimitSetting -} - export class DeepSeekServiceSettings { /** * A valid API key for your DeepSeek account. @@ -1191,27 +1179,6 @@ export enum DeepSeekServiceType { deepseek } -export enum EisTaskType { - chat_completion, - rerank -} - -export enum EisServiceType { - elastic -} - -export class EisTaskSettings { - /** - * For a `rerank` task, return doc text within the results. - */ - return_documents?: boolean - - /** - * For a `rerank` task, the number of the top N documents that should be returned. - */ - top_n?: integer -} - export class ElasticsearchServiceSettings { /** * Adaptive allocations configuration details.