diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index ed76c4dd31..e3728ec7ba 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -88752,6 +88752,7 @@ "inference._types.AmazonBedrockTaskType": { "type": "string", "enum": [ + "chat_completion", "completion", "text_embedding" ] @@ -88854,6 +88855,7 @@ "type": "string", "enum": [ "text_embedding", + "chat_completion", "completion" ] }, diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index a827981352..447629805e 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -56074,6 +56074,7 @@ "inference._types.AmazonBedrockTaskType": { "type": "string", "enum": [ + "chat_completion", "completion", "text_embedding" ] @@ -56176,6 +56177,7 @@ "type": "string", "enum": [ "text_embedding", + "chat_completion", "completion" ] }, diff --git a/output/schema/schema.json b/output/schema/schema.json index 4eef88269d..d0950832f2 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -167828,7 +167828,7 @@ "name": "AmazonBedrockServiceType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L441-L443" + "specLocation": "inference/_types/CommonTypes.ts#L442-L444" }, { "kind": "interface", @@ -167892,6 +167892,9 @@ { "kind": "enum", "members": [ + { + "name": "chat_completion" + }, { "name": "completion" }, @@ -167903,7 +167906,7 @@ "name": "AmazonBedrockTaskType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L436-L439" + "specLocation": "inference/_types/CommonTypes.ts#L436-L440" }, { "kind": "interface", @@ -167950,7 +167953,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L445-L461" + "specLocation": "inference/_types/CommonTypes.ts#L446-L462" }, { "kind": "enum", @@ -167963,7 +167966,7 @@ "name": "AnthropicServiceType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L494-L496" + "specLocation": "inference/_types/CommonTypes.ts#L495-L497" }, { "kind": "interface", @@ -168023,7 +168026,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L463-L488" + "specLocation": "inference/_types/CommonTypes.ts#L464-L489" }, { "kind": "enum", @@ -168036,7 +168039,7 @@ "name": "AnthropicTaskType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L490-L492" + "specLocation": "inference/_types/CommonTypes.ts#L491-L493" }, { "kind": "interface", @@ -168110,7 +168113,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L498-L540" + "specLocation": "inference/_types/CommonTypes.ts#L499-L541" }, { "kind": "enum", @@ -168123,7 +168126,7 @@ "name": "AzureAiStudioServiceType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L577-L579" + "specLocation": "inference/_types/CommonTypes.ts#L578-L580" }, { "kind": "interface", @@ -168194,7 +168197,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L542-L570" + "specLocation": "inference/_types/CommonTypes.ts#L543-L571" }, { "kind": "enum", @@ -168210,7 +168213,7 @@ "name": "AzureAiStudioTaskType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L572-L575" + "specLocation": "inference/_types/CommonTypes.ts#L573-L576" }, { "kind": "interface", @@ -168302,7 +168305,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L581-L626" + "specLocation": "inference/_types/CommonTypes.ts#L582-L627" }, { "kind": "enum", @@ -168315,7 +168318,7 @@ "name": "AzureOpenAIServiceType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L641-L643" + "specLocation": "inference/_types/CommonTypes.ts#L642-L644" }, { "kind": "interface", @@ -168337,7 +168340,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L628-L634" + "specLocation": "inference/_types/CommonTypes.ts#L629-L635" }, { "kind": "enum", @@ -168353,7 +168356,7 @@ "name": "AzureOpenAITaskType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L636-L639" + "specLocation": "inference/_types/CommonTypes.ts#L637-L640" }, { "kind": "enum", @@ -168378,7 +168381,7 @@ "name": "CohereEmbeddingType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L698-L704" + "specLocation": "inference/_types/CommonTypes.ts#L699-L705" }, { "kind": "enum", @@ -168400,7 +168403,7 @@ "name": "CohereInputType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L706-L711" + "specLocation": "inference/_types/CommonTypes.ts#L707-L712" }, { "kind": "interface", @@ -168473,7 +168476,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L645-L686" + "specLocation": "inference/_types/CommonTypes.ts#L646-L687" }, { "kind": "enum", @@ -168486,7 +168489,7 @@ "name": "CohereServiceType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L694-L696" + "specLocation": "inference/_types/CommonTypes.ts#L695-L697" }, { "kind": "enum", @@ -168505,7 +168508,7 @@ "name": "CohereSimilarityType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L713-L717" + "specLocation": "inference/_types/CommonTypes.ts#L714-L718" }, { "kind": "interface", @@ -168563,7 +168566,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L725-L757" + "specLocation": "inference/_types/CommonTypes.ts#L726-L758" }, { "kind": "enum", @@ -168582,7 +168585,7 @@ "name": "CohereTaskType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L688-L692" + "specLocation": "inference/_types/CommonTypes.ts#L689-L693" }, { "kind": "enum", @@ -168601,7 +168604,7 @@ "name": "CohereTruncateType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L719-L723" + "specLocation": "inference/_types/CommonTypes.ts#L720-L724" }, { "kind": "interface", @@ -168884,7 +168887,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L829-L840" + "specLocation": "inference/_types/CommonTypes.ts#L830-L841" }, { "kind": "interface", @@ -168902,7 +168905,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L842-L980" + "specLocation": "inference/_types/CommonTypes.ts#L843-L981" }, { "kind": "interface", @@ -168980,7 +168983,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L759-L827" + "specLocation": "inference/_types/CommonTypes.ts#L760-L828" }, { "kind": "enum", @@ -168993,7 +168996,7 @@ "name": "CustomServiceType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L989-L991" + "specLocation": "inference/_types/CommonTypes.ts#L990-L992" }, { "kind": "interface", @@ -169011,7 +169014,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L993-L1007" + "specLocation": "inference/_types/CommonTypes.ts#L994-L1008" }, { "kind": "enum", @@ -169033,7 +169036,7 @@ "name": "CustomTaskType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L982-L987" + "specLocation": "inference/_types/CommonTypes.ts#L983-L988" }, { "kind": "interface", @@ -169081,7 +169084,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L1021-L1043" + "specLocation": "inference/_types/CommonTypes.ts#L1022-L1044" }, { "kind": "enum", @@ -169094,7 +169097,7 @@ "name": "DeepSeekServiceType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1045-L1047" + "specLocation": "inference/_types/CommonTypes.ts#L1046-L1048" }, { "kind": "interface", @@ -169235,7 +169238,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L1070-L1104" + "specLocation": "inference/_types/CommonTypes.ts#L1071-L1105" }, { "kind": "enum", @@ -169248,7 +169251,7 @@ "name": "ElasticsearchServiceType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1120-L1122" + "specLocation": "inference/_types/CommonTypes.ts#L1121-L1123" }, { "kind": "interface", @@ -169271,7 +169274,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L1106-L1112" + "specLocation": "inference/_types/CommonTypes.ts#L1107-L1113" }, { "kind": "enum", @@ -169290,7 +169293,7 @@ "name": "ElasticsearchTaskType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1114-L1118" + "specLocation": "inference/_types/CommonTypes.ts#L1115-L1119" }, { "kind": "interface", @@ -169336,7 +169339,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L1124-L1150" + "specLocation": "inference/_types/CommonTypes.ts#L1125-L1151" }, { "kind": "enum", @@ -169349,7 +169352,7 @@ "name": "ElserServiceType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1156-L1158" + "specLocation": "inference/_types/CommonTypes.ts#L1157-L1159" }, { "kind": "enum", @@ -169362,7 +169365,7 @@ "name": "ElserTaskType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1152-L1154" + "specLocation": "inference/_types/CommonTypes.ts#L1153-L1155" }, { "kind": "enum", @@ -169375,7 +169378,7 @@ "name": "GoogleAiServiceType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1183-L1185" + "specLocation": "inference/_types/CommonTypes.ts#L1184-L1186" }, { "kind": "interface", @@ -169423,7 +169426,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L1160-L1176" + "specLocation": "inference/_types/CommonTypes.ts#L1161-L1177" }, { "kind": "enum", @@ -169439,7 +169442,7 @@ "name": "GoogleAiStudioTaskType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1178-L1181" + "specLocation": "inference/_types/CommonTypes.ts#L1179-L1182" }, { "kind": "interface", @@ -169513,7 +169516,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L1187-L1213" + "specLocation": "inference/_types/CommonTypes.ts#L1188-L1214" }, { "kind": "enum", @@ -169526,7 +169529,7 @@ "name": "GoogleVertexAIServiceType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1233-L1235" + "specLocation": "inference/_types/CommonTypes.ts#L1234-L1236" }, { "kind": "interface", @@ -169560,7 +169563,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L1215-L1224" + "specLocation": "inference/_types/CommonTypes.ts#L1216-L1225" }, { "kind": "enum", @@ -169582,7 +169585,7 @@ "name": "GoogleVertexAITaskType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1226-L1231" + "specLocation": "inference/_types/CommonTypes.ts#L1227-L1232" }, { "kind": "interface", @@ -169644,7 +169647,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L1237-L1269" + "specLocation": "inference/_types/CommonTypes.ts#L1238-L1270" }, { "kind": "enum", @@ -169657,7 +169660,7 @@ "name": "HuggingFaceServiceType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1290-L1292" + "specLocation": "inference/_types/CommonTypes.ts#L1291-L1293" }, { "kind": "interface", @@ -169691,7 +169694,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L1271-L1281" + "specLocation": "inference/_types/CommonTypes.ts#L1272-L1282" }, { "kind": "enum", @@ -169713,7 +169716,7 @@ "name": "HuggingFaceTaskType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1283-L1288" + "specLocation": "inference/_types/CommonTypes.ts#L1284-L1289" }, { "kind": "interface", @@ -170785,7 +170788,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L1294-L1323" + "specLocation": "inference/_types/CommonTypes.ts#L1295-L1324" }, { "kind": "enum", @@ -170798,7 +170801,7 @@ "name": "JinaAIServiceType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1353-L1355" + "specLocation": "inference/_types/CommonTypes.ts#L1354-L1356" }, { "kind": "enum", @@ -170817,7 +170820,7 @@ "name": "JinaAISimilarityType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1357-L1361" + "specLocation": "inference/_types/CommonTypes.ts#L1358-L1362" }, { "kind": "interface", @@ -170863,7 +170866,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L1325-L1346" + "specLocation": "inference/_types/CommonTypes.ts#L1326-L1347" }, { "kind": "enum", @@ -170879,7 +170882,7 @@ "name": "JinaAITaskType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1348-L1351" + "specLocation": "inference/_types/CommonTypes.ts#L1349-L1352" }, { "kind": "enum", @@ -170901,7 +170904,7 @@ "name": "JinaAITextEmbeddingTask", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1363-L1368" + "specLocation": "inference/_types/CommonTypes.ts#L1364-L1369" }, { "kind": "interface", @@ -171059,7 +171062,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L1370-L1397" + "specLocation": "inference/_types/CommonTypes.ts#L1371-L1398" }, { "kind": "enum", @@ -171072,7 +171075,7 @@ "name": "MistralServiceType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1405-L1407" + "specLocation": "inference/_types/CommonTypes.ts#L1406-L1408" }, { "kind": "enum", @@ -171091,7 +171094,7 @@ "name": "MistralTaskType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1399-L1403" + "specLocation": "inference/_types/CommonTypes.ts#L1400-L1404" }, { "kind": "interface", @@ -171178,7 +171181,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L1409-L1451" + "specLocation": "inference/_types/CommonTypes.ts#L1410-L1452" }, { "kind": "enum", @@ -171191,7 +171194,7 @@ "name": "OpenAIServiceType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1467-L1469" + "specLocation": "inference/_types/CommonTypes.ts#L1468-L1470" }, { "kind": "interface", @@ -171213,7 +171216,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L1453-L1459" + "specLocation": "inference/_types/CommonTypes.ts#L1454-L1460" }, { "kind": "enum", @@ -171232,7 +171235,7 @@ "name": "OpenAITaskType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1461-L1465" + "specLocation": "inference/_types/CommonTypes.ts#L1462-L1466" }, { "kind": "interface", @@ -171589,6 +171592,9 @@ { "name": "text_embedding" }, + { + "name": "chat_completion" + }, { "name": "completion" } @@ -171597,7 +171603,7 @@ "name": "TaskTypeAmazonBedrock", "namespace": "inference._types" }, - "specLocation": "inference/_types/TaskType.ts#L43-L46" + "specLocation": "inference/_types/TaskType.ts#L43-L47" }, { "kind": "enum", @@ -171610,7 +171616,7 @@ "name": "TaskTypeAnthropic", "namespace": "inference._types" }, - "specLocation": "inference/_types/TaskType.ts#L48-L50" + "specLocation": "inference/_types/TaskType.ts#L49-L51" }, { "kind": "enum", @@ -171626,7 +171632,7 @@ "name": "TaskTypeAzureAIStudio", "namespace": "inference._types" }, - "specLocation": "inference/_types/TaskType.ts#L52-L55" + "specLocation": "inference/_types/TaskType.ts#L53-L56" }, { "kind": "enum", @@ -171642,7 +171648,7 @@ "name": "TaskTypeAzureOpenAI", "namespace": "inference._types" }, - "specLocation": "inference/_types/TaskType.ts#L57-L60" + "specLocation": "inference/_types/TaskType.ts#L58-L61" }, { "kind": "enum", @@ -171661,7 +171667,7 @@ "name": "TaskTypeCohere", "namespace": "inference._types" }, - "specLocation": "inference/_types/TaskType.ts#L62-L66" + "specLocation": "inference/_types/TaskType.ts#L63-L67" }, { "kind": "enum", @@ -171683,7 +171689,7 @@ "name": "TaskTypeCustom", "namespace": "inference._types" }, - "specLocation": "inference/_types/TaskType.ts#L68-L73" + "specLocation": "inference/_types/TaskType.ts#L69-L74" }, { "kind": "enum", @@ -171699,7 +171705,7 @@ "name": "TaskTypeDeepSeek", "namespace": "inference._types" }, - "specLocation": "inference/_types/TaskType.ts#L75-L78" + "specLocation": "inference/_types/TaskType.ts#L76-L79" }, { "kind": "enum", @@ -171712,7 +171718,7 @@ "name": "TaskTypeELSER", "namespace": "inference._types" }, - "specLocation": "inference/_types/TaskType.ts#L86-L88" + "specLocation": "inference/_types/TaskType.ts#L87-L89" }, { "kind": "enum", @@ -171731,7 +171737,7 @@ "name": "TaskTypeElasticsearch", "namespace": "inference._types" }, - "specLocation": "inference/_types/TaskType.ts#L80-L84" + "specLocation": "inference/_types/TaskType.ts#L81-L85" }, { "kind": "enum", @@ -171747,7 +171753,7 @@ "name": "TaskTypeGoogleAIStudio", "namespace": "inference._types" }, - "specLocation": "inference/_types/TaskType.ts#L90-L93" + "specLocation": "inference/_types/TaskType.ts#L91-L94" }, { "kind": "enum", @@ -171763,7 +171769,7 @@ "name": "TaskTypeGoogleVertexAI", "namespace": "inference._types" }, - "specLocation": "inference/_types/TaskType.ts#L95-L98" + "specLocation": "inference/_types/TaskType.ts#L96-L99" }, { "kind": "enum", @@ -171785,7 +171791,7 @@ "name": "TaskTypeHuggingFace", "namespace": "inference._types" }, - "specLocation": "inference/_types/TaskType.ts#L100-L105" + "specLocation": "inference/_types/TaskType.ts#L101-L106" }, { "kind": "enum", @@ -171820,7 +171826,7 @@ "name": "TaskTypeMistral", "namespace": "inference._types" }, - "specLocation": "inference/_types/TaskType.ts#L107-L111" + "specLocation": "inference/_types/TaskType.ts#L108-L112" }, { "kind": "enum", @@ -171839,7 +171845,7 @@ "name": "TaskTypeOpenAI", "namespace": "inference._types" }, - "specLocation": "inference/_types/TaskType.ts#L113-L117" + "specLocation": "inference/_types/TaskType.ts#L114-L118" }, { "kind": "enum", @@ -171855,7 +171861,7 @@ "name": "TaskTypeVoyageAI", "namespace": "inference._types" }, - "specLocation": "inference/_types/TaskType.ts#L119-L122" + "specLocation": "inference/_types/TaskType.ts#L120-L123" }, { "kind": "enum", @@ -171874,7 +171880,7 @@ "name": "TaskTypeWatsonx", "namespace": "inference._types" }, - "specLocation": "inference/_types/TaskType.ts#L124-L128" + "specLocation": "inference/_types/TaskType.ts#L125-L129" }, { "kind": "interface", @@ -172120,7 +172126,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L1471-L1502" + "specLocation": "inference/_types/CommonTypes.ts#L1472-L1503" }, { "kind": "enum", @@ -172133,7 +172139,7 @@ "name": "VoyageAIServiceType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1535-L1537" + "specLocation": "inference/_types/CommonTypes.ts#L1536-L1538" }, { "kind": "interface", @@ -172193,7 +172199,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L1504-L1528" + "specLocation": "inference/_types/CommonTypes.ts#L1505-L1529" }, { "kind": "enum", @@ -172209,7 +172215,7 @@ "name": "VoyageAITaskType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1530-L1533" + "specLocation": "inference/_types/CommonTypes.ts#L1531-L1534" }, { "kind": "interface", @@ -172297,7 +172303,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L1539-L1577" + "specLocation": "inference/_types/CommonTypes.ts#L1540-L1578" }, { "kind": "enum", @@ -172310,7 +172316,7 @@ "name": "WatsonxServiceType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1585-L1587" + "specLocation": "inference/_types/CommonTypes.ts#L1586-L1588" }, { "kind": "enum", @@ -172329,7 +172335,7 @@ "name": "WatsonxTaskType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1579-L1583" + "specLocation": "inference/_types/CommonTypes.ts#L1580-L1584" }, { "kind": "request", diff --git a/output/typescript/types.ts b/output/typescript/types.ts index cab7b8f62c..b9abeaed1f 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -13766,7 +13766,7 @@ export interface InferenceAmazonBedrockTaskSettings { top_p?: float } -export type InferenceAmazonBedrockTaskType = 'completion' | 'text_embedding' +export type InferenceAmazonBedrockTaskType = 'chat_completion' | 'completion' | 'text_embedding' export interface InferenceAnthropicServiceSettings { api_key: string @@ -14217,7 +14217,7 @@ export type InferenceTaskType = 'sparse_embedding' | 'text_embedding' | 'rerank' export type InferenceTaskTypeAlibabaCloudAI = 'text_embedding' | 'rerank' | 'completion' | 'sparse_embedding' -export type InferenceTaskTypeAmazonBedrock = 'text_embedding' | 'completion' +export type InferenceTaskTypeAmazonBedrock = 'text_embedding' | 'chat_completion' | 'completion' export type InferenceTaskTypeAnthropic = 'completion' diff --git a/package-lock.json b/package-lock.json index d72f33ac58..312b5bd6e3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5,7 +5,7 @@ "packages": { "": { "dependencies": { - "@redocly/cli": "^1.34.5", + "@redocly/cli": "^1.34.6", "@stoplight/spectral-cli": "^6.14.2" } }, @@ -33,9 +33,9 @@ } }, "node_modules/@babel/helper-validator-identifier": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.27.1.tgz", - "integrity": "sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==", + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz", + "integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==", "license": "MIT", "engines": { "node": ">=6.9.0" @@ -489,9 +489,9 @@ } }, "node_modules/@redocly/cli": { - "version": "1.34.5", - "resolved": "https://registry.npmjs.org/@redocly/cli/-/cli-1.34.5.tgz", - "integrity": "sha512-5IEwxs7SGP5KEXjBKLU8Ffdz9by/KqNSeBk6YUVQaGxMXK//uYlTJIPntgUXbo1KAGG2d2q2XF8y4iFz6qNeiw==", + "version": "1.34.6", + "resolved": "https://registry.npmjs.org/@redocly/cli/-/cli-1.34.6.tgz", + "integrity": "sha512-V03jtLOXLm6+wpTuFNw9+eLHE6R3wywZo4Clt9XMPnulafbJcpCFz+J0e5/4Cw4zZB087xjU7WvRdI/bZ+pHtA==", "license": "MIT", "dependencies": { "@opentelemetry/api": "1.9.0", @@ -500,8 +500,8 @@ "@opentelemetry/sdk-trace-node": "1.26.0", "@opentelemetry/semantic-conventions": "1.27.0", "@redocly/config": "^0.22.0", - "@redocly/openapi-core": "1.34.5", - "@redocly/respect-core": "1.34.5", + "@redocly/openapi-core": "1.34.6", + "@redocly/respect-core": "1.34.6", "abort-controller": "^3.0.0", "chokidar": "^3.5.1", "colorette": "^1.2.0", @@ -513,8 +513,8 @@ "handlebars": "^4.7.6", "mobx": "^6.0.4", "pluralize": "^8.0.0", - "react": "^17.0.0 || ^18.2.0 || ^19.0.0", - "react-dom": "^17.0.0 || ^18.2.0 || ^19.0.0", + "react": "^17.0.0 || ^18.2.0 || ^19.2.1", + "react-dom": "^17.0.0 || ^18.2.0 || ^19.2.1", "redoc": "2.5.0", "semver": "^7.5.2", "simple-websocket": "^9.0.0", @@ -537,9 +537,9 @@ "license": "MIT" }, "node_modules/@redocly/openapi-core": { - "version": "1.34.5", - "resolved": "https://registry.npmjs.org/@redocly/openapi-core/-/openapi-core-1.34.5.tgz", - "integrity": "sha512-0EbE8LRbkogtcCXU7liAyC00n9uNG9hJ+eMyHFdUsy9lB/WGqnEBgwjA9q2cyzAVcdTkQqTBBU1XePNnN3OijA==", + "version": "1.34.6", + "resolved": "https://registry.npmjs.org/@redocly/openapi-core/-/openapi-core-1.34.6.tgz", + "integrity": "sha512-2+O+riuIUgVSuLl3Lyh5AplWZyVMNuG2F98/o6NrutKJfW4/GTZdPpZlIphS0HGgcOHgmWcCSHj+dWFlZaGSHw==", "license": "MIT", "dependencies": { "@redocly/ajv": "^8.11.2", @@ -558,14 +558,14 @@ } }, "node_modules/@redocly/respect-core": { - "version": "1.34.5", - "resolved": "https://registry.npmjs.org/@redocly/respect-core/-/respect-core-1.34.5.tgz", - "integrity": "sha512-GheC/g/QFztPe9UA9LamooSplQuy9pe0Yr8XGTqkz0ahivLDl7svoy/LSQNn1QH3XGtLKwFYMfTwFR2TAYyh5Q==", + "version": "1.34.6", + "resolved": "https://registry.npmjs.org/@redocly/respect-core/-/respect-core-1.34.6.tgz", + "integrity": "sha512-nXFBRctoB4CPCLR2it2WxDsuAE/nLd4EnW9mQ+IUKrIFAjMv1O6rgggxkgdlyKUyenYkajJIHSKwVbRS6FwlEQ==", "license": "MIT", "dependencies": { "@faker-js/faker": "^7.6.0", "@redocly/ajv": "8.11.2", - "@redocly/openapi-core": "1.34.5", + "@redocly/openapi-core": "1.34.6", "better-ajv-errors": "^1.2.0", "colorette": "^2.0.20", "concat-stream": "^2.0.0", @@ -1825,9 +1825,9 @@ "integrity": "sha512-m8FnyHXV1QX+S1cl+KPFDIl6NMkxtKsy6+U/aYyjrOqWMuwAwYWu7ePqrsUHtDR5Y8Yk2pi/KIDSgF+vT4cPOQ==" }, "node_modules/default-browser": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/default-browser/-/default-browser-5.2.1.tgz", - "integrity": "sha512-WY/3TUME0x3KPYdRRxEJJvXRHV4PyPoUsxtZa78lwItwRQRHhd2U9xOscaT/YTf8uCXIAjeJOFBVEh/7FtD8Xg==", + "version": "5.4.0", + "resolved": "https://registry.npmjs.org/default-browser/-/default-browser-5.4.0.tgz", + "integrity": "sha512-XDuvSq38Hr1MdN47EDvYtx3U0MTqpCEn+F6ft8z2vYDzMrvQhVp0ui9oQdqW3MvK3vqUETglt1tVGgjLuJ5izg==", "license": "MIT", "dependencies": { "bundle-name": "^4.1.0", @@ -1841,9 +1841,9 @@ } }, "node_modules/default-browser-id": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/default-browser-id/-/default-browser-id-5.0.0.tgz", - "integrity": "sha512-A6p/pu/6fyBcA1TRz/GqWYPViplrftcW2gZC9q79ngNCKAeR/X3gcEdXQHl4KNXV+3wgIJ1CPkJQ3IHM6lcsyA==", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/default-browser-id/-/default-browser-id-5.0.1.tgz", + "integrity": "sha512-x1VCxdX4t+8wVfd1so/9w+vQ4vx7lKd2Qp5tDRutErwmR85OgmfX7RlLRMWafRMY7hbEiXIbudNrjOAPa/hL8Q==", "license": "MIT", "engines": { "node": ">=18" @@ -2265,9 +2265,9 @@ "license": "MIT" }, "node_modules/form-data": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.4.tgz", - "integrity": "sha512-KrGhL9Q4zjj0kiUt5OO4Mr/A/jlI2jDYs5eHBpYHPcBEVSiipAvn2Ko2HnPe20rmcuuvMHNdZFp+4IlGTMF0Ow==", + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.5.tgz", + "integrity": "sha512-8RipRLol37bNs2bhoV67fiTEvdTrbMUYcFTiy3+wuuOnUog2QBHCZWXDRijWQfAkhBj2Uf5UnVaiWwA5vdd82w==", "license": "MIT", "dependencies": { "asynckit": "^0.4.0", @@ -4016,24 +4016,24 @@ } }, "node_modules/react": { - "version": "19.1.0", - "resolved": "https://registry.npmjs.org/react/-/react-19.1.0.tgz", - "integrity": "sha512-FS+XFBNvn3GTAWq26joslQgWNoFu08F4kl0J4CgdNKADkdSGXQyTCnKteIAJy96Br6YbpEU1LSzV5dYtjMkMDg==", + "version": "19.2.3", + "resolved": "https://registry.npmjs.org/react/-/react-19.2.3.tgz", + "integrity": "sha512-Ku/hhYbVjOQnXDZFv2+RibmLFGwFdeeKHFcOTlrt7xplBnya5OGn/hIRDsqDiSUcfORsDC7MPxwork8jBwsIWA==", "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/react-dom": { - "version": "19.1.0", - "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.1.0.tgz", - "integrity": "sha512-Xs1hdnE+DyKgeHJeJznQmYMIBG3TKIHJJT95Q58nHLSrElKlGQqDTR2HQ9fx5CN/Gk6Vh/kupBTDLU11/nDk/g==", + "version": "19.2.3", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.3.tgz", + "integrity": "sha512-yELu4WmLPw5Mr/lmeEpox5rw3RETacE++JgHqQzd2dg+YbJuat3jH4ingc+WPZhxaoFzdv9y33G+F7Nl5O0GBg==", "license": "MIT", "dependencies": { - "scheduler": "^0.26.0" + "scheduler": "^0.27.0" }, "peerDependencies": { - "react": "^19.1.0" + "react": "^19.2.3" } }, "node_modules/react-is": { @@ -4244,9 +4244,9 @@ } }, "node_modules/run-applescript": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/run-applescript/-/run-applescript-7.0.0.tgz", - "integrity": "sha512-9by4Ij99JUr/MCFBUkDKLWK3G9HVXmabKz9U5MlIAIuvuzkiOicRYs8XJLxX+xahD+mLiiCYDqF9dKAgtzKP1A==", + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/run-applescript/-/run-applescript-7.1.0.tgz", + "integrity": "sha512-DPe5pVFaAsinSaV6QjQ6gdiedWDcRCbUuiQfQa2wmWV7+xC9bGulGI8+TdRmoFkAPaBXk8CrAbnlY2ISniJ47Q==", "license": "MIT", "engines": { "node": ">=18" @@ -4357,9 +4357,9 @@ "license": "MIT" }, "node_modules/scheduler": { - "version": "0.26.0", - "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.26.0.tgz", - "integrity": "sha512-NlHwttCI/l5gCPR3D1nNXtWABUmBwvZpEQiD4IXSbIDq8BzLIK/7Ir5gTFSGZDUu37K5cMNp0hFtzO38sC7gWA==", + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.27.0.tgz", + "integrity": "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==", "license": "MIT" }, "node_modules/semver": { @@ -4375,9 +4375,9 @@ } }, "node_modules/set-cookie-parser": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/set-cookie-parser/-/set-cookie-parser-2.7.1.tgz", - "integrity": "sha512-IOc8uWeOZgnb3ptbCURJWNjWUPcO3ZnTTdzsurqERrP6nPyv+paC55vJM0LpOlT2ne+Ix+9+CRG1MNLlyZ4GjQ==", + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/set-cookie-parser/-/set-cookie-parser-2.7.2.tgz", + "integrity": "sha512-oeM1lpU/UvhTxw+g3cIfxXHyJRc/uidd3yK1P242gzHds0udQBYzs3y8j4gCCW+ZJ7ad0yctld8RYO+bdurlvw==", "license": "MIT" }, "node_modules/set-function-length": { @@ -4995,9 +4995,9 @@ } }, "node_modules/undici": { - "version": "6.21.3", - "resolved": "https://registry.npmjs.org/undici/-/undici-6.21.3.tgz", - "integrity": "sha512-gBLkYIlEnSp8pFbT64yFgGE6UIB9tAkhukC23PmMDCe5Nd+cRqKxSjw5y54MK2AZMgZfJWMaNE4nYUHgi1XEOw==", + "version": "6.22.0", + "resolved": "https://registry.npmjs.org/undici/-/undici-6.22.0.tgz", + "integrity": "sha512-hU/10obOIu62MGYjdskASR3CUAiYaFTtC9Pa6vHyf//mAipSvSQg6od2CnJswq7fvzNS3zJhxoRkgNVaHurWKw==", "license": "MIT", "engines": { "node": ">=18.17" diff --git a/package.json b/package.json index a8d71d5a7b..9146c6c048 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "transform-to-openapi": "npm run transform-to-openapi --prefix compiler --" }, "dependencies": { - "@redocly/cli": "^1.34.5", + "@redocly/cli": "^1.34.6", "@stoplight/spectral-cli": "^6.14.2" } } diff --git a/specification/inference/_types/CommonTypes.ts b/specification/inference/_types/CommonTypes.ts index 4941cb9210..4d00dbb1af 100644 --- a/specification/inference/_types/CommonTypes.ts +++ b/specification/inference/_types/CommonTypes.ts @@ -434,6 +434,7 @@ export class AmazonBedrockTaskSettings { } export enum AmazonBedrockTaskType { + chat_completion, completion, text_embedding } diff --git a/specification/inference/_types/TaskType.ts b/specification/inference/_types/TaskType.ts index 6daed0d281..aa693a39d2 100644 --- a/specification/inference/_types/TaskType.ts +++ b/specification/inference/_types/TaskType.ts @@ -42,6 +42,7 @@ export enum TaskTypeAlibabaCloudAI { export enum TaskTypeAmazonBedrock { text_embedding, + chat_completion, completion }