Skip to main content

Variable: createLeuria

const createLeuria: (options) => Leuria = createAI

Defined in: packages/client/src/leuria.ts:407

One AI client for the page, over the AIs you list, in order: the first that can answer does.

const ai = createAI({ providers: [leuria({ app: "My shop" }), promptAPI(), server({ url: "/api/ai" })] })

Parameters​

options​

LeuriaOptions

Returns​

Leuria

Deprecated​

The same as createAI, its first name.