Skip to content

Commit

Permalink
Auto-generated code for 8.11 (#2046)
Browse files Browse the repository at this point in the history
  • Loading branch information
elasticmachine authored Nov 1, 2023
1 parent fae6e98 commit e59d6c5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/reference.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/api/api/ml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/api/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14044,6 +14044,7 @@ export interface MlPutTrainedModelVocabularyRequest extends RequestBase {
model_id: Id
vocabulary: string[]
merges?: string[]
scores?: double[]
}

export type MlPutTrainedModelVocabularyResponse = AcknowledgedResponseBase
Expand Down
1 change: 1 addition & 0 deletions src/api/typesWithBodyKey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14306,6 +14306,7 @@ export interface MlPutTrainedModelVocabularyRequest extends RequestBase {
body?: {
vocabulary: string[]
merges?: string[]
scores?: double[]
}
}

Expand Down

0 comments on commit e59d6c5

Please sign in to comment.