Skip to content

Commit 4324ddd

Browse files
committed
Address comment
1 parent 15908c7 commit 4324ddd

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

docs-devsite/ai.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ ImagenSafetyFilterLevel: {
624624

625625
<b>(EXPERIMENTAL)</b> Determines whether inference happens on-device or in-cloud.
626626

627-
<b>PREFER\_ON\_DEVICE:</b> Attempt to make inference calls on-device. If on-device inference is not available, it will fall back to cloud. <br/> <b>ONLY\_ON\_DEVICE:</b> Only attempt to make inference calls on-device. It will not fall back to cloud. If on-device inference is not available, inference methods will throw. <br/> <b>ONLY\_IN\_CLOUD:</b> Only attempt to make inference calls to the cloud. It will not fall back to on-device. <br/> <b>PREFER\_IN\_CLOUD:</b> Attempt to make inference calls to the cloud. If not available, it will fall back to on-device.
627+
<b>PREFER\_ON\_DEVICE:</b> Attempt to make inference calls using an on-device model. If on-device inference is not available, the SDK will fall back to using a cloud-hosted model. <br/> <b>ONLY\_ON\_DEVICE:</b> Only attempt to make inference calls using an on-device model. The SDK will not fall back to a cloud-hosted model. If on-device inference is not available, inference methods will throw. <br/> <b>ONLY\_IN\_CLOUD:</b> Only attempt to make inference calls using a cloud-hosted model. The SDK will not fall back to an on-device model. <br/> <b>PREFER\_IN\_CLOUD:</b> Attempt to make inference calls to a cloud-hosted model. If not available, the SDK will fall back to an on-device model.
628628

629629
<b>Signature:</b>
630630

packages/ai/src/types/enums.ts

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -349,18 +349,20 @@ export type ResponseModality =
349349
* Determines whether inference happens on-device or in-cloud.
350350
*
351351
* @remarks
352-
* <b>PREFER_ON_DEVICE:</b> Attempt to make inference calls on-device.
353-
* If on-device inference is not available, it will fall back to cloud.
352+
* <b>PREFER_ON_DEVICE:</b> Attempt to make inference calls using an
353+
* on-device model. If on-device inference is not available, the SDK
354+
* will fall back to using a cloud-hosted model.
354355
* <br/>
355-
* <b>ONLY_ON_DEVICE:</b> Only attempt to make inference calls on-device.
356-
* It will not fall back to cloud. If on-device inference is not available,
357-
* inference methods will throw.
356+
* <b>ONLY_ON_DEVICE:</b> Only attempt to make inference calls using an
357+
* on-device model. The SDK will not fall back to a cloud-hosted model.
358+
* If on-device inference is not available, inference methods will throw.
358359
* <br/>
359-
* <b>ONLY_IN_CLOUD:</b> Only attempt to make inference calls to the cloud.
360-
* It will not fall back to on-device.
360+
* <b>ONLY_IN_CLOUD:</b> Only attempt to make inference calls using a
361+
* cloud-hosted model. The SDK will not fall back to an on-device model.
361362
* <br/>
362-
* <b>PREFER_IN_CLOUD:</b> Attempt to make inference calls to the cloud.
363-
* If not available, it will fall back to on-device.
363+
* <b>PREFER_IN_CLOUD:</b> Attempt to make inference calls to a
364+
* cloud-hosted model. If not available, the SDK will fall back to an
365+
* on-device model.
364366
*
365367
* @public
366368
*/

0 commit comments

Comments
 (0)