Skip to content

Commit a6392eb

Browse files
Auto-generated code for main (#2047)
1 parent dc7d603 commit a6392eb

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

docs/reference.asciidoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6370,6 +6370,7 @@ client.ml.putTrainedModelVocabulary({ model_id, vocabulary })
63706370
** *`model_id` (string)*: The unique identifier of the trained model.
63716371
** *`vocabulary` (string[])*: The model vocabulary, which must not be empty.
63726372
** *`merges` (Optional, string[])*: The optional model merges if required by the tokenizer.
6373+
** *`scores` (Optional, number[])*: The optional vocabulary value scores if required by the tokenizer.
63736374

63746375
[discrete]
63756376
==== reset_job

src/api/api/ml.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1923,7 +1923,7 @@ export default class Ml {
19231923
async putTrainedModelVocabulary (this: That, params: T.MlPutTrainedModelVocabularyRequest | TB.MlPutTrainedModelVocabularyRequest, options?: TransportRequestOptions): Promise<T.MlPutTrainedModelVocabularyResponse>
19241924
async putTrainedModelVocabulary (this: That, params: T.MlPutTrainedModelVocabularyRequest | TB.MlPutTrainedModelVocabularyRequest, options?: TransportRequestOptions): Promise<any> {
19251925
const acceptedPath: string[] = ['model_id']
1926-
const acceptedBody: string[] = ['vocabulary', 'merges']
1926+
const acceptedBody: string[] = ['vocabulary', 'merges', 'scores']
19271927
const querystring: Record<string, any> = {}
19281928
// @ts-expect-error
19291929
const userBody: any = params?.body

src/api/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14051,6 +14051,7 @@ export interface MlPutTrainedModelVocabularyRequest extends RequestBase {
1405114051
model_id: Id
1405214052
vocabulary: string[]
1405314053
merges?: string[]
14054+
scores?: double[]
1405414055
}
1405514056

1405614057
export type MlPutTrainedModelVocabularyResponse = AcknowledgedResponseBase

src/api/typesWithBodyKey.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14313,6 +14313,7 @@ export interface MlPutTrainedModelVocabularyRequest extends RequestBase {
1431314313
body?: {
1431414314
vocabulary: string[]
1431514315
merges?: string[]
14316+
scores?: double[]
1431614317
}
1431714318
}
1431814319

0 commit comments

Comments
 (0)