Function: LeuriaProvider()
LeuriaProvider(
__namedParameters):Element
Defined in: react/src/context.tsx:13
Makes a Leuria client available to the hooks below it. Create the client once, outside render:
const ai = createAI({ providers: [leuria({ app: "Mug shop" }), promptAPI()] })
Parameters
__namedParameters
children?
ReactNode
client
Leuria
Returns
Element