From d77c204e9024b46f59e076b453854b47be2393ae Mon Sep 17 00:00:00 2001 From: Elastic Machine Date: Wed, 1 Nov 2023 06:03:18 +0000 Subject: [PATCH] Auto-generated API code --- docs/reference.asciidoc | 1 + src/api/api/ml.ts | 2 +- src/api/types.ts | 1 + src/api/typesWithBodyKey.ts | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/reference.asciidoc b/docs/reference.asciidoc index 92db3bbab..0c5563289 100644 --- a/docs/reference.asciidoc +++ b/docs/reference.asciidoc @@ -6370,6 +6370,7 @@ client.ml.putTrainedModelVocabulary({ model_id, vocabulary }) ** *`model_id` (string)*: The unique identifier of the trained model. ** *`vocabulary` (string[])*: The model vocabulary, which must not be empty. ** *`merges` (Optional, string[])*: The optional model merges if required by the tokenizer. +** *`scores` (Optional, number[])*: The optional vocabulary value scores if required by the tokenizer. [discrete] ==== reset_job diff --git a/src/api/api/ml.ts b/src/api/api/ml.ts index ffebde954..e0f57a2ad 100644 --- a/src/api/api/ml.ts +++ b/src/api/api/ml.ts @@ -1923,7 +1923,7 @@ export default class Ml { async putTrainedModelVocabulary (this: That, params: T.MlPutTrainedModelVocabularyRequest | TB.MlPutTrainedModelVocabularyRequest, options?: TransportRequestOptions): Promise async putTrainedModelVocabulary (this: That, params: T.MlPutTrainedModelVocabularyRequest | TB.MlPutTrainedModelVocabularyRequest, options?: TransportRequestOptions): Promise { const acceptedPath: string[] = ['model_id'] - const acceptedBody: string[] = ['vocabulary', 'merges'] + const acceptedBody: string[] = ['vocabulary', 'merges', 'scores'] const querystring: Record = {} // @ts-expect-error const userBody: any = params?.body diff --git a/src/api/types.ts b/src/api/types.ts index 5f1885b02..13b4c40d4 100644 --- a/src/api/types.ts +++ b/src/api/types.ts @@ -14051,6 +14051,7 @@ export interface MlPutTrainedModelVocabularyRequest extends RequestBase { model_id: Id vocabulary: string[] merges?: string[] + scores?: double[] } export type MlPutTrainedModelVocabularyResponse = AcknowledgedResponseBase diff --git a/src/api/typesWithBodyKey.ts b/src/api/typesWithBodyKey.ts index 993be2b15..68b792bc3 100644 --- a/src/api/typesWithBodyKey.ts +++ b/src/api/typesWithBodyKey.ts @@ -14313,6 +14313,7 @@ export interface MlPutTrainedModelVocabularyRequest extends RequestBase { body?: { vocabulary: string[] merges?: string[] + scores?: double[] } }