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

Signature:

export interface LanguageModelCreateOptions extends LanguageModelCreateCoreOptions 

Extends: LanguageModelCreateCoreOptions

Properties

Property Type Description
initialPrompts LanguageModelMessage[] (Public Preview)
signal AbortSignal (Public Preview)

LanguageModelCreateOptions.initialPrompts

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.

Signature:

initialPrompts?: LanguageModelMessage[];

LanguageModelCreateOptions.signal

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.

Signature:

signal?: AbortSignal;