Project: /docs/reference/js/_project.yaml Book: /docs/reference/_book.yaml page_type: reference
{% comment %} DO NOT EDIT THIS FILE! This is generated by the JS SDK team, and any local changes will be overwritten. Changes should be made in the source code at https://github.com/firebase/firebase-js-sdk {% endcomment %}
Toggles hybrid inference.
Signature:
export interface HybridParams
Property | Type | Description |
---|---|---|
inCloudParams | ModelParams | Optional. Specifies advanced params for in-cloud inference. |
mode | InferenceMode | Specifies on-device or in-cloud inference. Defaults to prefer on-device. |
onDeviceParams | LanguageModelCreateOptions | Optional. Specifies advanced params for on-device inference. |
Optional. Specifies advanced params for in-cloud inference.
Signature:
inCloudParams?: ModelParams;
Specifies on-device or in-cloud inference. Defaults to prefer on-device.
Signature:
mode: InferenceMode;
Optional. Specifies advanced params for on-device inference.
Signature:
onDeviceParams?: LanguageModelCreateOptions;