File tree Expand file tree Collapse file tree 3 files changed +12
-4
lines changed
packages/vertexai/src/types Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -502,13 +502,9 @@ export interface ImagenSafetySettings {
502
502
503
503
// @public
504
504
export interface HybridParams {
505
- // (undocumented)
506
505
mode? : InferenceMode ;
507
- // (undocumented)
508
506
onCloudParams? : ModelParams ;
509
507
// Warning: (ae-forgotten-export) The symbol "AILanguageModelCreateOptionsWithSystemPrompt" needs to be exported by the entry point index.d.ts
510
- //
511
- // (undocumented)
512
508
onDeviceParams? : AILanguageModelCreateOptionsWithSystemPrompt ;
513
509
}
514
510
Original file line number Diff line number Diff line change @@ -246,7 +246,10 @@ export enum Modality {
246
246
* @public
247
247
*/
248
248
export enum InferenceMode {
249
+ // Specifies the SDK should use on-device if possible, or fall back to on-cloud.
249
250
PREFER_ON_DEVICE = 'PREFER_ON_DEVICE' ,
251
+ // Specifies the SDK must use on-device or throw.
250
252
ONLY_ON_DEVICE = 'ONLY_ON_DEVICE' ,
253
+ // Specifies the SDK must use on-cloud.
251
254
ONLY_ON_CLOUD = 'ONLY_ON_CLOUD'
252
255
}
Original file line number Diff line number Diff line change @@ -221,7 +221,16 @@ export interface FunctionCallingConfig {
221
221
* @public
222
222
*/
223
223
export interface HybridParams {
224
+ /**
225
+ * Optional. Specifies on-device or on-cloud inference. Defaults to prefer on-device.
226
+ */
224
227
mode ?: InferenceMode ;
228
+ /**
229
+ * Optional. Specifies advanced params for on-device inference
230
+ */
225
231
onDeviceParams ?: AILanguageModelCreateOptionsWithSystemPrompt ;
232
+ /**
233
+ * Optional. Specifies advanced params for on-cloud inference.
234
+ */
226
235
onCloudParams ?: ModelParams ;
227
236
}
You can’t perform that action at this time.
0 commit comments