Auto-generated code for main (#2047)
This commit is contained in:
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -14051,6 +14051,7 @@ export interface MlPutTrainedModelVocabularyRequest extends RequestBase {
|
||||
model_id: Id
|
||||
vocabulary: string[]
|
||||
merges?: string[]
|
||||
scores?: double[]
|
||||
}
|
||||
|
||||
export type MlPutTrainedModelVocabularyResponse = AcknowledgedResponseBase
|
||||
|
||||
@ -14313,6 +14313,7 @@ export interface MlPutTrainedModelVocabularyRequest extends RequestBase {
|
||||
body?: {
|
||||
vocabulary: string[]
|
||||
merges?: string[]
|
||||
scores?: double[]
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user