Skip to content

Commit e59d6c5

Browse files
Auto-generated code for 8.11 (#2046)
1 parent fae6e98 commit e59d6c5

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
@@ -14044,6 +14044,7 @@ export interface MlPutTrainedModelVocabularyRequest extends RequestBase {
1404414044
model_id: Id
1404514045
vocabulary: string[]
1404614046
merges?: string[]
14047+
scores?: double[]
1404714048
}
1404814049

1404914050
export type MlPutTrainedModelVocabularyResponse = AcknowledgedResponseBase

src/api/typesWithBodyKey.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14306,6 +14306,7 @@ export interface MlPutTrainedModelVocabularyRequest extends RequestBase {
1430614306
body?: {
1430714307
vocabulary: string[]
1430814308
merges?: string[]
14309+
scores?: double[]
1430914310
}
1431014311
}
1431114312

0 commit comments

Comments
 (0)