Back to Firebase Js Sdk

LanguageModelCreateCoreOptions interface

docs-devsite/ai.languagemodelcreatecoreoptions.md

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

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

Configures the creation of an on-device language model session.

<b>Signature:</b>

typescript
export interface LanguageModelCreateCoreOptions 

Properties

PropertyTypeDescription
expectedInputsLanguageModelExpected<!-- -->[]<b><i>(Public Preview)</i></b>
temperaturenumber<b><i>(Public Preview)</i></b>
topKnumber<b><i>(Public Preview)</i></b>

LanguageModelCreateCoreOptions.expectedInputs

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
expectedInputs?: LanguageModelExpected[];

LanguageModelCreateCoreOptions.temperature

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.

Warning: This API is now obsolete.

<b>Signature:</b>

typescript
temperature?: number;

LanguageModelCreateCoreOptions.topK

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.

Warning: This API is now obsolete.

<b>Signature:</b>

typescript
topK?: number;