From 9e5fb373e3063fb0c49549f3cfdfdf8b47b064bf Mon Sep 17 00:00:00 2001 From: Elastic Machine Date: Wed, 1 Nov 2023 06:03:12 +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 eee72b07c..ee2435983 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 f9afb236c..07039fbad 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 2c52d097f..a783e2c24 100644 --- a/src/api/types.ts +++ b/src/api/types.ts @@ -14044,6 +14044,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 bd0351824..818351077 100644 --- a/src/api/typesWithBodyKey.ts +++ b/src/api/typesWithBodyKey.ts @@ -14306,6 +14306,7 @@ export interface MlPutTrainedModelVocabularyRequest extends RequestBase { body?: { vocabulary: string[] merges?: string[] + scores?: double[] } }