Back to Firebase Js Sdk

LanguageModelExpected interface

docs-devsite/ai.languagemodelexpected.md

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

LanguageModelExpected 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.

Options for the expected inputs for an on-device language model.

<b>Signature:</b>

typescript
export interface LanguageModelExpected 

Properties

PropertyTypeDescription
languagesstring[]<b><i>(Public Preview)</i></b>
typeLanguageModelMessageType<b><i>(Public Preview)</i></b>

LanguageModelExpected.languages

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
languages?: string[];

LanguageModelExpected.type

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
type: LanguageModelMessageType;