Skip to content

Commit eb6ae3c

Browse files
committed
Use multi-line JSDoc comments for enum
1 parent 9302d67 commit eb6ae3c

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

common/api-review/vertexai.api.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -504,17 +504,13 @@ export interface ImagenSafetySettings {
504504
export interface HybridParams {
505505
mode?: InferenceMode;
506506
onCloudParams?: ModelParams;
507-
// Warning: (ae-forgotten-export) The symbol "AILanguageModelCreateOptionsWithSystemPrompt" needs to be exported by the entry point index.d.ts
508507
onDeviceParams?: AILanguageModelCreateOptionsWithSystemPrompt;
509508
}
510509

511510
// @public
512511
export enum InferenceMode {
513-
// (undocumented)
514512
ONLY_ON_CLOUD = "ONLY_ON_CLOUD",
515-
// (undocumented)
516513
ONLY_ON_DEVICE = "ONLY_ON_DEVICE",
517-
// (undocumented)
518514
PREFER_ON_DEVICE = "PREFER_ON_DEVICE"
519515
}
520516

packages/vertexai/src/types/enums.ts

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,10 +246,18 @@ export enum Modality {
246246
* @public
247247
*/
248248
export enum InferenceMode {
249-
// Specifies the SDK should use on-device if possible, or fall back to on-cloud.
249+
/**
250+
* Uses the on-device model if available, or falls back to the on-cloud model.
251+
*/
250252
PREFER_ON_DEVICE = 'PREFER_ON_DEVICE',
251-
// Specifies the SDK must use on-device or throw.
253+
254+
/**
255+
* Exclusively uses the on-device model. Throws if one is not available.
256+
*/
252257
ONLY_ON_DEVICE = 'ONLY_ON_DEVICE',
253-
// Specifies the SDK must use on-cloud.
258+
259+
/**
260+
* Exclusively uses the on-cloud model.
261+
*/
254262
ONLY_ON_CLOUD = 'ONLY_ON_CLOUD'
255263
}

packages/vertexai/src/types/requests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ export interface HybridParams {
225225
*/
226226
mode?: InferenceMode;
227227
/**
228-
* Optional. Specifies advanced params for on-device inference
228+
* Optional. Specifies advanced params for on-device inference.
229229
*/
230230
onDeviceParams?: AILanguageModelCreateOptionsWithSystemPrompt;
231231
/**

0 commit comments

Comments
 (0)