Auto-generated code for main (#2047)

This commit is contained in:
Elastic Machine
2023-11-02 03:14:57 +11:00
committed by GitHub
parent dc7d603f47
commit a6392ebe07
4 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -1923,7 +1923,7 @@ export default class Ml {
async putTrainedModelVocabulary (this: That, params: T.MlPutTrainedModelVocabularyRequest | TB.MlPutTrainedModelVocabularyRequest, options?: TransportRequestOptions): Promise<T.MlPutTrainedModelVocabularyResponse>
async putTrainedModelVocabulary (this: That, params: T.MlPutTrainedModelVocabularyRequest | TB.MlPutTrainedModelVocabularyRequest, options?: TransportRequestOptions): Promise<any> {
const acceptedPath: string[] = ['model_id']
const acceptedBody: string[] = ['vocabulary', 'merges']
const acceptedBody: string[] = ['vocabulary', 'merges', 'scores']
const querystring: Record<string, any> = {}
// @ts-expect-error
const userBody: any = params?.body

View File

@ -14051,6 +14051,7 @@ export interface MlPutTrainedModelVocabularyRequest extends RequestBase {
model_id: Id
vocabulary: string[]
merges?: string[]
scores?: double[]
}
export type MlPutTrainedModelVocabularyResponse = AcknowledgedResponseBase

View File

@ -14313,6 +14313,7 @@ export interface MlPutTrainedModelVocabularyRequest extends RequestBase {
body?: {
vocabulary: string[]
merges?: string[]
scores?: double[]
}
}