GO-V.ORG
As seen in

Search e01

One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.

7 results across 6 corpora for LanguageModel.

Papers 1

Utilizing Large LanguageModels to Detect Privacy Leaks in Mini-App Code

OpenAlex work · 2024 · CN

OpenAlex / DOI · Metadata: CC0; publisher content per DOI · https://doi.org/10.48550/arxiv.2402.07367

Developer library 6

LanguageModel

Prompt API The **`LanguageModel`** interface of the [Prompt API](/docs/Web/API/Prompt_API) represents a session with a browser-provided language model. It exposes static methods for creating sessions and checking availability, as well as instance methods for prompting the model, appending context, and managing the context window. `LanguageModel` instances cannot be constructed directly. Instead, use the static Lang

MDN Web Docs mirror · CC BY-SA 2.5 (MDN) · https://developer.mozilla.org/en-US/docs/Web/API/LanguageModel

LanguageModel: promptStreaming() method

Prompt API The **`promptStreaming()`** method of the LanguageModel interface sends input to the language model and returns a ReadableStream that delivers the model's response incrementally as it is generated. This is useful for displaying responses to users incrementally for outputs that take a long time to complete, or for any scenario where perceived latency should be minimized. Consume the stream using `for awai

LanguageModel: availability() static method

Prompt API The **`availability()`** static method of the LanguageModel interface returns a status identifier indicating whether the browser's language model supports a given set of configuration options, without creating a session or triggering a download. Use `availability()` before calling LanguageModel.create() to determine whether the desired configuration is supported. This avoids initiating a session only to

LanguageModel: append() method

Prompt API The **`append()`** method of the LanguageModel interface adds content to the session's context window without generating a model response. It returns a Promise that resolves when the content has been successfully loaded into context. Use this method to preload a context before asking the model a question. A context may be a document, conversation, history, or background information. You can call the `app

LanguageModel: contextUsage property

Prompt API The **`contextUsage`** read-only property of the LanguageModel interface returns the number of context window tokens currently consumed by the session that calls it, including initial prompts and all subsequent turns. This value increases every time you call prompt(), promptStreaming(), or append(). Compare `contextUsage` with LanguageModel.contextWindow to determine how many tokens remain. When `contex

LanguageModel: create() static method

Prompt API The **`create()`** static method of the LanguageModel interface constructs a new LanguageModel instance, automatically downloading the corresponding model data if it is not already available. ## Syntax ```js-nolint LanguageModel.create() LanguageModel.create(options) ``` ### Parameters - `options` - : An object representing the options for creating a LanguageModel session. Properties include: -

JSON results · Services directory