File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -350,9 +350,26 @@ export type ResponseModality =
350350 * @public
351351 */
352352export const InferenceMode = {
353+ /**
354+ * Attempt to make inference calls on-device. If on-device
355+ * inference is not available, it will fall back to cloud.
356+ */
353357 'PREFER_ON_DEVICE' : 'prefer_on_device' ,
358+ /**
359+ * Only attempt to make inference calls on-device. It will not
360+ * fall back to cloud. If on-device inference is not available,
361+ * inference methods will throw.
362+ */
354363 'ONLY_ON_DEVICE' : 'only_on_device' ,
364+ /**
365+ * Only attempt to make inference calls to the cloud. It will not
366+ * fall back to on-device.
367+ */
355368 'ONLY_IN_CLOUD' : 'only_in_cloud' ,
369+ /**
370+ * Attempt to make inference calls to the cloud. If not available,
371+ * it will fall back to on-device.
372+ */
356373 'PREFER_IN_CLOUD' : 'prefer_in_cloud'
357374} as const ;
358375
You can’t perform that action at this time.
0 commit comments