Skip to main content

Function: installPromptAPI()

installPromptAPI(options?): Promise<"browser" | "leuria">

Defined in: prompt-api/src/index.ts:57

Define globalThis.LanguageModel with Leuria, unless the browser's own model serves (see when). Resolves with who answers: "browser" or "leuria".

Parametersโ€‹

options?โ€‹

InstallOptions = {}

Returnsโ€‹

Promise<"browser" | "leuria">