Interface: LeuriaState
Defined in: packages/client/src/leuria.ts:81
Properties
active?
optionalactive?:ProviderInfo
Defined in: packages/client/src/leuria.ts:84
The provider a plain chat request would use now.
alternatives
alternatives:
ProviderSnapshot[]
Defined in: packages/client/src/leuria.ts:100
Chat providers waiting for the visitor to pick them instead of their
own AI (see fallback), in order: ready ones, and ones a click would
make ready (a download). Offer them as secondary choices.
embedder?
optionalembedder?:ProviderInfo&object
Defined in: packages/client/src/leuria.ts:92
The provider and model embed() would use now. An index built with another model must be rebuilt.
Type Declaration
model
model:
string
embedPending?
optionalembedPending?:ProviderSnapshot
Defined in: packages/client/src/leuria.ts:94
Like pending, for embeddings: an embedder ahead of the current one that needs a visitor action.
pending?
optionalpending?:ProviderSnapshot
Defined in: packages/client/src/leuria.ts:90
A provider that needs a visitor action (connect, download) and is preferred over the active one (or none is ready): offer it, even while a fallback answers, so the visitor can bring their own AI back.
providers
providers:
ProviderSnapshot[]
Defined in: packages/client/src/leuria.ts:82