Skip to content

Commit 6f87cb4

Browse files
committed
Merge branch 'feat/prefer-in-cloud' of https://github.com/firebase/firebase-js-sdk into feat/prefer-in-cloud
2 parents a1af166 + db53108 commit 6f87cb4

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

.changeset/feat-prefer-in-cloud.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,4 @@
33
"firebase": minor
44
---
55

6-
feat: Add `prefer_in_cloud` option for inference mode
7-
8-
This change introduces a new `InferenceMode` option, `prefer_in_cloud`. When this mode is selected, the SDK will attempt to use the cloud backend first. If the cloud call fails with a network-related error, it will fall back to the on-device model if available.
9-
10-
This also includes a refactoring of the logic for dispatching requests to either the on-device or cloud backends to improve clarity and remove duplication.
6+
Added a new `InferenceMode` option, `prefer_in_cloud`. When this mode is selected, the SDK will attempt to use the cloud backend first. If the cloud call fails with a network-related error, it will fall back to the on-device model if available.

0 commit comments

Comments
 (0)