From 97d8d4209acb5912e4ee3b61b0ab0f567bff5f22 Mon Sep 17 00:00:00 2001 From: David Olaru Date: Tue, 31 Oct 2023 10:48:55 +0000 Subject: [PATCH 1/4] Add missing `scores` parameter in `MLPutTrainedModelVocabularyRequest` --- .../MlPutTrainedModelVocabularyRequest.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/specification/ml/put_trained_model_vocabulary/MlPutTrainedModelVocabularyRequest.ts b/specification/ml/put_trained_model_vocabulary/MlPutTrainedModelVocabularyRequest.ts index 2dd8894005..781d451591 100644 --- a/specification/ml/put_trained_model_vocabulary/MlPutTrainedModelVocabularyRequest.ts +++ b/specification/ml/put_trained_model_vocabulary/MlPutTrainedModelVocabularyRequest.ts @@ -48,5 +48,12 @@ export interface Request extends RequestBase { * @availability serverless */ merges?: string[] + + /** + * The optional vocabulary value scores if required by the tokenizer. + * @availability stack since=8.9.0 + * @availability serverless + */ + scores?: string[] } } From ddf075b62448495e0b20333d360603f0a0c5ad0f Mon Sep 17 00:00:00 2001 From: David Olaru Date: Tue, 31 Oct 2023 11:35:58 +0000 Subject: [PATCH 2/4] Fix type --- .../MlPutTrainedModelVocabularyRequest.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/specification/ml/put_trained_model_vocabulary/MlPutTrainedModelVocabularyRequest.ts b/specification/ml/put_trained_model_vocabulary/MlPutTrainedModelVocabularyRequest.ts index 781d451591..d577f0e0e0 100644 --- a/specification/ml/put_trained_model_vocabulary/MlPutTrainedModelVocabularyRequest.ts +++ b/specification/ml/put_trained_model_vocabulary/MlPutTrainedModelVocabularyRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Id } from '@_types/common' +import {double} from "@_types/Numeric"; /** * Creates a trained model vocabulary. @@ -54,6 +55,6 @@ export interface Request extends RequestBase { * @availability stack since=8.9.0 * @availability serverless */ - scores?: string[] + scores?: double[] } } From 4271bd17b2b7c2fbd99c55e2e071ce4ac0c2f226 Mon Sep 17 00:00:00 2001 From: David Olaru Date: Tue, 31 Oct 2023 11:37:29 +0000 Subject: [PATCH 3/4] Formatting --- .../MlPutTrainedModelVocabularyRequest.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/ml/put_trained_model_vocabulary/MlPutTrainedModelVocabularyRequest.ts b/specification/ml/put_trained_model_vocabulary/MlPutTrainedModelVocabularyRequest.ts index d577f0e0e0..c202fb7a3a 100644 --- a/specification/ml/put_trained_model_vocabulary/MlPutTrainedModelVocabularyRequest.ts +++ b/specification/ml/put_trained_model_vocabulary/MlPutTrainedModelVocabularyRequest.ts @@ -19,7 +19,7 @@ import { RequestBase } from '@_types/Base' import { Id } from '@_types/common' -import {double} from "@_types/Numeric"; +import { double } from '@_types/Numeric' /** * Creates a trained model vocabulary. From e6efed83420e24eba7316569abae5c970c13ac37 Mon Sep 17 00:00:00 2001 From: David Olaru Date: Tue, 31 Oct 2023 11:47:13 +0000 Subject: [PATCH 4/4] Update schema & types --- output/schema/schema.json | 24 +++++++++++++++++++++++- output/typescript/types.ts | 1 + 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/output/schema/schema.json b/output/schema/schema.json index f78e1f7646..78ddd60da9 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -154438,6 +154438,28 @@ } } } + }, + { + "availability": { + "serverless": {}, + "stack": { + "since": "8.9.0" + } + }, + "description": "The optional vocabulary value scores if required by the tokenizer.", + "name": "scores", + "required": false, + "since": "8.9.0", + "type": { + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "double", + "namespace": "_types" + } + } + } } ] }, @@ -154468,7 +154490,7 @@ } ], "query": [], - "specLocation": "ml/put_trained_model_vocabulary/MlPutTrainedModelVocabularyRequest.ts#L23-L52" + "specLocation": "ml/put_trained_model_vocabulary/MlPutTrainedModelVocabularyRequest.ts#L24-L60" }, { "body": { diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 00bb40a084..c9a24fced6 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -14314,6 +14314,7 @@ export interface MlPutTrainedModelVocabularyRequest extends RequestBase { body?: { vocabulary: string[] merges?: string[] + scores?: double[] } }