File tree Expand file tree Collapse file tree 3 files changed +12
-8
lines changed
packages/vertexai/src/types Expand file tree Collapse file tree 3 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -504,17 +504,13 @@ export interface ImagenSafetySettings {
504504export 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
512511export 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
Original file line number Diff line number Diff line change @@ -246,10 +246,18 @@ export enum Modality {
246246 * @public
247247 */
248248export 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}
Original file line number Diff line number Diff 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 /**
You can’t perform that action at this time.
0 commit comments