Back to Firebase Js Sdk

OnDeviceParams interface

docs-devsite/ai.ondeviceparams.md

12.12.11.6 KB
Original Source

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 %}

OnDeviceParams interface

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Encapsulates configuration for on-device inference.

<b>Signature:</b>

typescript
export interface OnDeviceParams 

Properties

PropertyTypeDescription
createOptionsLanguageModelCreateOptions<b><i>(Public Preview)</i></b>
promptOptionsLanguageModelPromptOptions<b><i>(Public Preview)</i></b>

OnDeviceParams.createOptions

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

<b>Signature:</b>

typescript
createOptions?: LanguageModelCreateOptions;

OnDeviceParams.promptOptions

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

<b>Signature:</b>

typescript
promptOptions?: LanguageModelPromptOptions;